Class BetaManagedAgentsSessionThreadCreatedEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThreadCreatedEventEmitted when a subagent is spawned as a new thread. Written to the parent thread's output stream so clients observing the session see child creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionThreadCreatedEvent.BuilderA builder for BetaManagedAgentsSessionThreadCreatedEvent.
public final classBetaManagedAgentsSessionThreadCreatedEvent.Type
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final StringagentName()Name of the callable agent the thread runs. final OffsetDateTimeprocessedAt()A timestamp in RFC 3339 format final StringsessionThreadId()Public sthr_ID of the newly created thread.final BetaManagedAgentsSessionThreadCreatedEvent.Typetype()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_agentName()Returns the raw JSON value of agentName. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<String>_sessionThreadId()Returns the raw JSON value of sessionThreadId. final JsonField<BetaManagedAgentsSessionThreadCreatedEvent.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionThreadCreatedEvent.BuildertoBuilder()final BetaManagedAgentsSessionThreadCreatedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionThreadCreatedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadCreatedEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
sessionThreadId
final String sessionThreadId()
Public
sthr_ID of the newly created thread.
-
type
final BetaManagedAgentsSessionThreadCreatedEvent.Type type()
-
_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.
-
_agentName
final JsonField<String> _agentName()
Returns the raw JSON value of agentName.
Unlike agentName, 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.
-
_sessionThreadId
final JsonField<String> _sessionThreadId()
Returns the raw JSON value of sessionThreadId.
Unlike sessionThreadId, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsSessionThreadCreatedEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionThreadCreatedEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionThreadCreatedEvent 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 BetaManagedAgentsSessionThreadCreatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadCreatedEvent.
The following fields are required:
.id() .agentName() .processedAt() .sessionThreadId() .type()
-
-
-
-