Class BetaManagedAgentsUserInterruptEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserInterruptEventAn interrupt event that pauses agent execution and returns control to the user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserInterruptEvent.BuilderA builder for BetaManagedAgentsUserInterruptEvent.
public final classBetaManagedAgentsUserInterruptEvent.Type
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final BetaManagedAgentsUserInterruptEvent.Typetype()final Optional<OffsetDateTime>processedAt()A timestamp in RFC 3339 format final Optional<String>sessionThreadId()If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsUserInterruptEvent.Type>_type()Returns the raw JSON value of type. 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 BetaManagedAgentsUserInterruptEvent.BuildertoBuilder()final BetaManagedAgentsUserInterruptEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserInterruptEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserInterruptEvent. -
-
Method Detail
-
type
final BetaManagedAgentsUserInterruptEvent.Type type()
-
processedAt
final Optional<OffsetDateTime> processedAt()
A timestamp in RFC 3339 format
-
sessionThreadId
final Optional<String> sessionThreadId()
If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread.
-
_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.
-
_type
final JsonField<BetaManagedAgentsUserInterruptEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, 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 BetaManagedAgentsUserInterruptEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsUserInterruptEvent 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 BetaManagedAgentsUserInterruptEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserInterruptEvent.
The following fields are required:
.id() .type()
-
-
-
-