Class BetaManagedAgentsUserToolConfirmationEventParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserToolConfirmationEventParams.BuilderA builder for BetaManagedAgentsUserToolConfirmationEventParams.
-
-
Method Summary
-
-
Method Detail
-
result
final BetaManagedAgentsUserToolConfirmationEventParams.Builder result(BetaManagedAgentsUserToolConfirmationEventParams.Result result)
UserToolConfirmationResult enum
-
result
final BetaManagedAgentsUserToolConfirmationEventParams.Builder result(JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Result> result)
Sets Builder.result to an arbitrary JSON value.
You should usually call Builder.result with a well-typed Result value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolUseId
final BetaManagedAgentsUserToolConfirmationEventParams.Builder toolUseId(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.
-
toolUseId
final BetaManagedAgentsUserToolConfirmationEventParams.Builder toolUseId(JsonField<String> toolUseId)
Sets Builder.toolUseId to an arbitrary JSON value.
You should usually call Builder.toolUseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsUserToolConfirmationEventParams.Builder type(BetaManagedAgentsUserToolConfirmationEventParams.Type type)
-
type
final BetaManagedAgentsUserToolConfirmationEventParams.Builder type(JsonField<BetaManagedAgentsUserToolConfirmationEventParams.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
denyMessage
final BetaManagedAgentsUserToolConfirmationEventParams.Builder denyMessage(String denyMessage)
Optional message providing context for a 'deny' decision. Only allowed when result is 'deny'.
-
denyMessage
final BetaManagedAgentsUserToolConfirmationEventParams.Builder denyMessage(Optional<String> denyMessage)
Alias for calling Builder.denyMessage with
denyMessage.orElse(null).
-
denyMessage
final BetaManagedAgentsUserToolConfirmationEventParams.Builder denyMessage(JsonField<String> denyMessage)
Sets Builder.denyMessage to an arbitrary JSON value.
You should usually call Builder.denyMessage with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsUserToolConfirmationEventParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsUserToolConfirmationEventParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsUserToolConfirmationEventParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsUserToolConfirmationEventParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsUserToolConfirmationEventParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsUserToolConfirmationEventParams build()
Returns an immutable instance of BetaManagedAgentsUserToolConfirmationEventParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.result() .toolUseId() .type()
-
-
-
-