Class BetaResponseItem.AgentMessage
-
- All Implemented Interfaces:
public final class BetaResponseItem.AgentMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseItem.AgentMessage.BuilderA builder for AgentMessage.
public final classBetaResponseItem.AgentMessage.ContentA content part that makes up an input or output item.
public final classBetaResponseItem.AgentMessage.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the agent message. final Stringauthor()The sending agent identity. final List<BetaResponseItem.AgentMessage.Content>content()Encrypted content sent between agents. final Stringrecipient()The destination agent identity. final JsonValue_type()The type of the item. final Optional<BetaResponseItem.AgentMessage.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_author()Returns the raw JSON value of author. final JsonField<List<BetaResponseItem.AgentMessage.Content>>_content()Returns the raw JSON value of content. final JsonField<String>_recipient()Returns the raw JSON value of recipient. final JsonField<BetaResponseItem.AgentMessage.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseItem.AgentMessage.BuildertoBuilder()final BetaResponseItem.AgentMessagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseItem.AgentMessage.Builderbuilder()Returns a mutable builder for constructing an instance of AgentMessage. -
-
Method Detail
-
content
final List<BetaResponseItem.AgentMessage.Content> content()
Encrypted content sent between agents.
-
_type
final JsonValue _type()
The type of the item. Always
agent_message.Expected to always return the following:
JsonValue.from("agent_message")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseItem.AgentMessage.Agent> agent()
The agent that produced this item.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_author
final JsonField<String> _author()
Returns the raw JSON value of author.
Unlike author, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<List<BetaResponseItem.AgentMessage.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_recipient
final JsonField<String> _recipient()
Returns the raw JSON value of recipient.
Unlike recipient, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseItem.AgentMessage.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseItem.AgentMessage.Builder toBuilder()
-
validate
final BetaResponseItem.AgentMessage validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseItem.AgentMessage.Builder builder()
Returns a mutable builder for constructing an instance of AgentMessage.
The following fields are required:
.id() .author() .content() .recipient()
-
-
-
-