Class BetaManagedAgentsAgentThreadMessageReceivedEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentThreadMessageReceivedEventDelivery event written to the target thread's input stream when an agent-to-agent message arrives.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentThreadMessageReceivedEvent.BuilderA builder for BetaManagedAgentsAgentThreadMessageReceivedEvent.
public final classBetaManagedAgentsAgentThreadMessageReceivedEvent.ContentContent block in a user message. Can be
text,image, ordocument.public final classBetaManagedAgentsAgentThreadMessageReceivedEvent.Type
-
Method Summary
-
-
Method Detail
-
content
final List<BetaManagedAgentsAgentThreadMessageReceivedEvent.Content> content()
Message content blocks.
-
fromSessionThreadId
final String fromSessionThreadId()
Public
sthr_ID of the thread that sent the message.
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
fromAgentName
final Optional<String> fromAgentName()
Name of the callable agent this message came from. Absent when received from 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<BetaManagedAgentsAgentThreadMessageReceivedEvent.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_fromSessionThreadId
final JsonField<String> _fromSessionThreadId()
Returns the raw JSON value of fromSessionThreadId.
Unlike fromSessionThreadId, 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.
-
_type
final JsonField<BetaManagedAgentsAgentThreadMessageReceivedEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_fromAgentName
final JsonField<String> _fromAgentName()
Returns the raw JSON value of fromAgentName.
Unlike fromAgentName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgentThreadMessageReceivedEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentThreadMessageReceivedEvent 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 BetaManagedAgentsAgentThreadMessageReceivedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentThreadMessageReceivedEvent.
The following fields are required:
.id() .content() .fromSessionThreadId() .processedAt() .type()
-
-
-
-