Class BetaManagedAgentsAgentMcpToolUseEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentMcpToolUseEvent.BuilderA builder for BetaManagedAgentsAgentMcpToolUseEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsAgentMcpToolUseEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsAgentMcpToolUseEvent.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.
-
input
final BetaManagedAgentsAgentMcpToolUseEvent.Builder input(BetaManagedAgentsAgentMcpToolUseEvent.Input input)
Input parameters for the tool call.
-
input
final BetaManagedAgentsAgentMcpToolUseEvent.Builder input(JsonField<BetaManagedAgentsAgentMcpToolUseEvent.Input> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed Input value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mcpServerName
final BetaManagedAgentsAgentMcpToolUseEvent.Builder mcpServerName(String mcpServerName)
Name of the MCP server providing the tool.
-
mcpServerName
final BetaManagedAgentsAgentMcpToolUseEvent.Builder mcpServerName(JsonField<String> mcpServerName)
Sets Builder.mcpServerName to an arbitrary JSON value.
You should usually call Builder.mcpServerName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaManagedAgentsAgentMcpToolUseEvent.Builder name(String name)
Name of the MCP tool being used.
-
name
final BetaManagedAgentsAgentMcpToolUseEvent.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name 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 BetaManagedAgentsAgentMcpToolUseEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsAgentMcpToolUseEvent.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.
-
type
final BetaManagedAgentsAgentMcpToolUseEvent.Builder type(BetaManagedAgentsAgentMcpToolUseEvent.Type type)
-
type
final BetaManagedAgentsAgentMcpToolUseEvent.Builder type(JsonField<BetaManagedAgentsAgentMcpToolUseEvent.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.
-
evaluatedPermission
final BetaManagedAgentsAgentMcpToolUseEvent.Builder evaluatedPermission(BetaManagedAgentsAgentMcpToolUseEvent.EvaluatedPermission evaluatedPermission)
AgentEvaluatedPermission enum
-
evaluatedPermission
final BetaManagedAgentsAgentMcpToolUseEvent.Builder evaluatedPermission(JsonField<BetaManagedAgentsAgentMcpToolUseEvent.EvaluatedPermission> evaluatedPermission)
Sets Builder.evaluatedPermission to an arbitrary JSON value.
You should usually call Builder.evaluatedPermission with a well-typed EvaluatedPermission value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionThreadId
final BetaManagedAgentsAgentMcpToolUseEvent.Builder sessionThreadId(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.
-
sessionThreadId
final BetaManagedAgentsAgentMcpToolUseEvent.Builder sessionThreadId(Optional<String> sessionThreadId)
Alias for calling Builder.sessionThreadId with
sessionThreadId.orElse(null).
-
sessionThreadId
final BetaManagedAgentsAgentMcpToolUseEvent.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 BetaManagedAgentsAgentMcpToolUseEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsAgentMcpToolUseEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsAgentMcpToolUseEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsAgentMcpToolUseEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsAgentMcpToolUseEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsAgentMcpToolUseEvent build()
Returns an immutable instance of BetaManagedAgentsAgentMcpToolUseEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .mcpServerName() .name() .processedAt() .type()
-
-
-
-