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.ResultThe confirmation result: 'allow' or 'deny'.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsUserToolConfirmationEventParams.Resultresult()The confirmation result: 'allow' or 'deny'. 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 Optional<String>denyMessage()Optional message providing context for a 'deny' decision. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user.tool_confirmation")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<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()
The confirmation result: 'allow' or 'deny'.
-
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'.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("user.tool_confirmation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_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()
-
-
-
-