Class BetaManagedAgentsUserToolConfirmationEventParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserToolConfirmationEventParamsParameters for confirming or denying a tool execution request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserToolConfirmationEventParams.BuilderA builder for BetaManagedAgentsUserToolConfirmationEventParams.
public final classBetaManagedAgentsUserToolConfirmationEventParams.ResultUserToolConfirmationResult enum
public final classBetaManagedAgentsUserToolConfirmationEventParams.Type
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsUserToolConfirmationEventParams.Resultresult()UserToolConfirmationResult enum final StringtoolUseId()The id of the agent.tool_useoragent.mcp_tool_useevent this result corresponds to, which can be found in the lastsession.status_idleevent'sstop_reason.event_idsfield.final BetaManagedAgentsUserToolConfirmationEventParams.Typetype()final Optional<String>denyMessage()Optional message providing context for a 'deny' decision. final JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Result>_result()Returns the raw JSON value of result. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Type>_type()Returns the raw JSON value of type. final JsonField<String>_denyMessage()Returns the raw JSON value of denyMessage. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserToolConfirmationEventParams.BuildertoBuilder()final BetaManagedAgentsUserToolConfirmationEventParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserToolConfirmationEventParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserToolConfirmationEventParams. -
-
Method Detail
-
result
final BetaManagedAgentsUserToolConfirmationEventParams.Result result()
UserToolConfirmationResult enum
-
toolUseId
final String toolUseId()
The id of the
agent.tool_useoragent.mcp_tool_useevent this result corresponds to, which can be found in the lastsession.status_idleevent'sstop_reason.event_idsfield.
-
denyMessage
final Optional<String> denyMessage()
Optional message providing context for a 'deny' decision. Only allowed when result is 'deny'.
-
_result
final JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Result> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_toolUseId
final JsonField<String> _toolUseId()
Returns the raw JSON value of toolUseId.
Unlike toolUseId, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_denyMessage
final JsonField<String> _denyMessage()
Returns the raw JSON value of denyMessage.
Unlike denyMessage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsUserToolConfirmationEventParams.Builder toBuilder()
-
validate
final BetaManagedAgentsUserToolConfirmationEventParams 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 BetaManagedAgentsUserToolConfirmationEventParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserToolConfirmationEventParams.
The following fields are required:
.result() .toolUseId() .type()
-
-
-
-