Class BetaManagedAgentsSessionThreadStatusRescheduledEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThreadStatusRescheduledEventA session thread hit a transient error and is retrying automatically. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionThreadStatusRescheduledEvent.BuilderA builder for BetaManagedAgentsSessionThreadStatusRescheduledEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final StringagentName()Name of the agent the thread runs. final OffsetDateTimeprocessedAt()Timestamp of the status transition. final StringsessionThreadId()Public sthr_ ID of the thread that is retrying. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session.thread_status_rescheduled")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 Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionThreadStatusRescheduledEvent.BuildertoBuilder()final BetaManagedAgentsSessionThreadStatusRescheduledEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionThreadStatusRescheduledEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadStatusRescheduledEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
Timestamp of the status transition.
-
sessionThreadId
final String sessionThreadId()
Public sthr_ ID of the thread that is retrying.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("session.thread_status_rescheduled")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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionThreadStatusRescheduledEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionThreadStatusRescheduledEvent 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 BetaManagedAgentsSessionThreadStatusRescheduledEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionThreadStatusRescheduledEvent.
The following fields are required:
.id() .agentName() .processedAt() .sessionThreadId()
-
-
-
-