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.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final Optional<OffsetDateTime>processedAt()Timestamp when the interrupt was processed. 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 JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user.interrupt")final JsonField<String>_id()Returns the raw JSON value of id. 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. final static BetaManagedAgentsUserInterruptEventof(String id)Returns an immutable instance of BetaManagedAgentsUserInterruptEvent with the required id set to the given value. -
-
Method Detail
-
processedAt
final Optional<OffsetDateTime> processedAt()
Timestamp when the interrupt was processed.
-
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.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("user.interrupt")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.
-
_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()
-
of
final static BetaManagedAgentsUserInterruptEvent of(String id)
Returns an immutable instance of BetaManagedAgentsUserInterruptEvent with the required id set to the given value.
-
-
-
-