Class BetaManagedAgentsUserInterruptEventParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserInterruptEventParamsParameters for sending an interrupt to pause the agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserInterruptEventParams.BuilderA builder for BetaManagedAgentsUserInterruptEventParams.
-
Method Summary
Modifier and Type Method Description 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>_sessionThreadId()Returns the raw JSON value of sessionThreadId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserInterruptEventParams.BuildertoBuilder()final BetaManagedAgentsUserInterruptEventParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserInterruptEventParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserInterruptEventParams. -
-
Method Detail
-
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).
-
_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 BetaManagedAgentsUserInterruptEventParams.Builder toBuilder()
-
validate
final BetaManagedAgentsUserInterruptEventParams 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 BetaManagedAgentsUserInterruptEventParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserInterruptEventParams.
-
-
-
-