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.public final classBetaManagedAgentsAgentThreadMessageSentEvent.Type
-
Method Summary
-
-
Method Detail
-
content
final List<BetaManagedAgentsAgentThreadMessageSentEvent.Content> content()
Message content blocks.
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
toSessionThreadId
final String toSessionThreadId()
Public
sthr_ID of the thread the message was sent to.
-
type
final BetaManagedAgentsAgentThreadMessageSentEvent.Type type()
-
toAgentName
final Optional<String> toAgentName()
Name of the callable agent this message was sent to. Absent when sent to the primary agent.
-
_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.
-
_type
final JsonField<BetaManagedAgentsAgentThreadMessageSentEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, 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() .type()
-
-
-
-