Class BetaResponseOutputItem.AgentMessage
-
- All Implemented Interfaces:
public final class BetaResponseOutputItem.AgentMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseOutputItem.AgentMessage.BuilderA builder for AgentMessage.
public final classBetaResponseOutputItem.AgentMessage.ContentA content part that makes up an input or output item.
public final classBetaResponseOutputItem.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<BetaResponseOutputItem.AgentMessage.Content>content()Encrypted content sent between agents. final Stringrecipient()The destination agent identity. final JsonValue_type()The type of the item. final Optional<BetaResponseOutputItem.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<BetaResponseOutputItem.AgentMessage.Content>>_content()Returns the raw JSON value of content. final JsonField<String>_recipient()Returns the raw JSON value of recipient. final JsonField<BetaResponseOutputItem.AgentMessage.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseOutputItem.AgentMessage.BuildertoBuilder()final BetaResponseOutputItem.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 BetaResponseOutputItem.AgentMessage.Builderbuilder()Returns a mutable builder for constructing an instance of AgentMessage. -
-
Method Detail
-
content
final List<BetaResponseOutputItem.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<BetaResponseOutputItem.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<BetaResponseOutputItem.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<BetaResponseOutputItem.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 BetaResponseOutputItem.AgentMessage.Builder toBuilder()
-
validate
final BetaResponseOutputItem.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 BetaResponseOutputItem.AgentMessage.Builder builder()
Returns a mutable builder for constructing an instance of AgentMessage.
The following fields are required:
.id() .author() .content() .recipient()
-
-
-
-