Class BetaManagedAgentsAgentThreadMessageSentEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentThreadMessageSentEventObservability event emitted to the sender's output stream when an agent-to-agent message is sent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentThreadMessageSentEvent.BuilderA builder for BetaManagedAgentsAgentThreadMessageSentEvent.
public final classBetaManagedAgentsAgentThreadMessageSentEvent.ContentContent block in a user message. Can be
text,image, ordocument.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final List<BetaManagedAgentsAgentThreadMessageSentEvent.Content>content()Message content blocks. final OffsetDateTimeprocessedAt()Timestamp when the message was sent. final StringtoSessionThreadId()Public sthr_ID of the thread the message was sent to.final Optional<String>toAgentName()Name of the callable agent this message was sent to. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("agent.thread_message_sent")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaManagedAgentsAgentThreadMessageSentEvent.Content>>_content()Returns the raw JSON value of content. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<String>_toSessionThreadId()Returns the raw JSON value of toSessionThreadId. final JsonField<String>_toAgentName()Returns the raw JSON value of toAgentName. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgentThreadMessageSentEvent.BuildertoBuilder()final BetaManagedAgentsAgentThreadMessageSentEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentThreadMessageSentEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentThreadMessageSentEvent. -
-
Method Detail
-
content
final List<BetaManagedAgentsAgentThreadMessageSentEvent.Content> content()
Message content blocks.
-
processedAt
final OffsetDateTime processedAt()
Timestamp when the message was sent.
-
toSessionThreadId
final String toSessionThreadId()
Public
sthr_ID of the thread the message was sent to.
-
toAgentName
final Optional<String> toAgentName()
Name of the callable agent this message was sent to. Absent when sent to the primary agent.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("agent.thread_message_sent")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_content
final JsonField<List<BetaManagedAgentsAgentThreadMessageSentEvent.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_toSessionThreadId
final JsonField<String> _toSessionThreadId()
Returns the raw JSON value of toSessionThreadId.
Unlike toSessionThreadId, this method doesn't throw if the JSON field has an unexpected type.
-
_toAgentName
final JsonField<String> _toAgentName()
Returns the raw JSON value of toAgentName.
Unlike toAgentName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgentThreadMessageSentEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentThreadMessageSentEvent 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 BetaManagedAgentsAgentThreadMessageSentEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentThreadMessageSentEvent.
The following fields are required:
.id() .content() .processedAt() .toSessionThreadId()
-
-
-
-