Class BetaManagedAgentsAgentToolUseEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentToolUseEventEvent emitted when the agent invokes a built-in agent tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentToolUseEvent.BuilderA builder for BetaManagedAgentsAgentToolUseEvent.
public final classBetaManagedAgentsAgentToolUseEvent.InputInput parameters for the tool call.
public final classBetaManagedAgentsAgentToolUseEvent.Typepublic final classBetaManagedAgentsAgentToolUseEvent.EvaluatedPermissionAgentEvaluatedPermission enum
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final BetaManagedAgentsAgentToolUseEvent.Inputinput()Input parameters for the tool call. final Stringname()Name of the agent tool being used. final OffsetDateTimeprocessedAt()A timestamp in RFC 3339 format final BetaManagedAgentsAgentToolUseEvent.Typetype()final Optional<BetaManagedAgentsAgentToolUseEvent.EvaluatedPermission>evaluatedPermission()AgentEvaluatedPermission enum final Optional<String>sessionThreadId()When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsAgentToolUseEvent.Input>_input()Returns the raw JSON value of input. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsAgentToolUseEvent.Type>_type()Returns the raw JSON value of type. final JsonField<BetaManagedAgentsAgentToolUseEvent.EvaluatedPermission>_evaluatedPermission()Returns the raw JSON value of evaluatedPermission. final JsonField<String>_sessionThreadId()Returns the raw JSON value of sessionThreadId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgentToolUseEvent.BuildertoBuilder()final BetaManagedAgentsAgentToolUseEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentToolUseEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentToolUseEvent. -
-
Method Detail
-
input
final BetaManagedAgentsAgentToolUseEvent.Input input()
Input parameters for the tool call.
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
type
final BetaManagedAgentsAgentToolUseEvent.Type type()
-
evaluatedPermission
final Optional<BetaManagedAgentsAgentToolUseEvent.EvaluatedPermission> evaluatedPermission()
AgentEvaluatedPermission enum
-
sessionThreadId
final Optional<String> sessionThreadId()
When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Echo this on a
user.tool_confirmationevent to route the approval back.
-
_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.
-
_input
final JsonField<BetaManagedAgentsAgentToolUseEvent.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, 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.
-
_type
final JsonField<BetaManagedAgentsAgentToolUseEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_evaluatedPermission
final JsonField<BetaManagedAgentsAgentToolUseEvent.EvaluatedPermission> _evaluatedPermission()
Returns the raw JSON value of evaluatedPermission.
Unlike evaluatedPermission, 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 BetaManagedAgentsAgentToolUseEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentToolUseEvent 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 BetaManagedAgentsAgentToolUseEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentToolUseEvent.
The following fields are required:
.id() .input() .name() .processedAt() .type()
-
-
-
-