Class BetaManagedAgentsUserToolConfirmationEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserToolConfirmationEvent.BuilderA builder for BetaManagedAgentsUserToolConfirmationEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsUserToolConfirmationEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsUserToolConfirmationEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
result
final BetaManagedAgentsUserToolConfirmationEvent.Builder result(BetaManagedAgentsUserToolConfirmationEvent.Result result)
UserToolConfirmationResult enum
-
result
final BetaManagedAgentsUserToolConfirmationEvent.Builder result(JsonField<BetaManagedAgentsUserToolConfirmationEvent.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 BetaManagedAgentsUserToolConfirmationEvent.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 BetaManagedAgentsUserToolConfirmationEvent.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 BetaManagedAgentsUserToolConfirmationEvent.Builder type(BetaManagedAgentsUserToolConfirmationEvent.Type type)
-
type
final BetaManagedAgentsUserToolConfirmationEvent.Builder type(JsonField<BetaManagedAgentsUserToolConfirmationEvent.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 BetaManagedAgentsUserToolConfirmationEvent.Builder denyMessage(String denyMessage)
Optional message providing context for a 'deny' decision. Only allowed when result is 'deny'.
-
denyMessage
final BetaManagedAgentsUserToolConfirmationEvent.Builder denyMessage(Optional<String> denyMessage)
Alias for calling Builder.denyMessage with
denyMessage.orElse(null).
-
denyMessage
final BetaManagedAgentsUserToolConfirmationEvent.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.
-
processedAt
final BetaManagedAgentsUserToolConfirmationEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsUserToolConfirmationEvent.Builder processedAt(Optional<OffsetDateTime> processedAt)
Alias for calling Builder.processedAt with
processedAt.orElse(null).
-
processedAt
final BetaManagedAgentsUserToolConfirmationEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionThreadId
final BetaManagedAgentsUserToolConfirmationEvent.Builder sessionThreadId(String sessionThreadId)
When set, the confirmation routes to this subagent's thread rather than the primary. Echo this from the
session_thread_idon theagent.tool_useoragent.mcp_tool_useevent that prompted the approval.
-
sessionThreadId
final BetaManagedAgentsUserToolConfirmationEvent.Builder sessionThreadId(Optional<String> sessionThreadId)
Alias for calling Builder.sessionThreadId with
sessionThreadId.orElse(null).
-
sessionThreadId
final BetaManagedAgentsUserToolConfirmationEvent.Builder sessionThreadId(JsonField<String> sessionThreadId)
Sets Builder.sessionThreadId to an arbitrary JSON value.
You should usually call Builder.sessionThreadId 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 BetaManagedAgentsUserToolConfirmationEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsUserToolConfirmationEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsUserToolConfirmationEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsUserToolConfirmationEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsUserToolConfirmationEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsUserToolConfirmationEvent build()
Returns an immutable instance of BetaManagedAgentsUserToolConfirmationEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .result() .toolUseId() .type()
-
-
-
-