Class BetaManagedAgentsSessionAgentUpdate.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionAgentUpdate.BuilderA builder for BetaManagedAgentsSessionAgentUpdate.
-
-
Method Summary
-
-
Method Detail
-
mcpServers
final BetaManagedAgentsSessionAgentUpdate.Builder mcpServers(List<BetaManagedAgentsUrlMcpServerParams> mcpServers)
Replacement MCP server list. Full replacement: the provided array becomes the new value. Send an empty array to clear; omit to preserve.
-
mcpServers
final BetaManagedAgentsSessionAgentUpdate.Builder mcpServers(JsonField<List<BetaManagedAgentsUrlMcpServerParams>> mcpServers)
Sets Builder.mcpServers to an arbitrary JSON value.
You should usually call Builder.mcpServers with a well-typed
List<BetaManagedAgentsUrlMcpServerParams>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMcpServer
final BetaManagedAgentsSessionAgentUpdate.Builder addMcpServer(BetaManagedAgentsUrlMcpServerParams mcpServer)
Adds a single BetaManagedAgentsUrlMcpServerParams to mcpServers.
-
tools
final BetaManagedAgentsSessionAgentUpdate.Builder tools(List<BetaManagedAgentsSessionAgentUpdate.Tool> tools)
Replacement tool list. Full replacement: the provided array becomes the new value. Send an empty array to clear; omit to preserve.
-
tools
final BetaManagedAgentsSessionAgentUpdate.Builder tools(JsonField<List<BetaManagedAgentsSessionAgentUpdate.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final BetaManagedAgentsSessionAgentUpdate.Builder addTool(BetaManagedAgentsSessionAgentUpdate.Tool tool)
-
addTool
final BetaManagedAgentsSessionAgentUpdate.Builder addTool(BetaManagedAgentsAgentToolset20260401Params agentToolset20260401)
Alias for calling addTool with
Tool.ofAgentToolset20260401(agentToolset20260401).
-
addTool
final BetaManagedAgentsSessionAgentUpdate.Builder addTool(BetaManagedAgentsMcpToolsetParams mcpToolset)
Alias for calling addTool with
Tool.ofMcpToolset(mcpToolset).
-
addTool
final BetaManagedAgentsSessionAgentUpdate.Builder addTool(BetaManagedAgentsCustomToolParams custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
addMcpToolsetTool
final BetaManagedAgentsSessionAgentUpdate.Builder addMcpToolsetTool(String mcpServerName)
Alias for calling addTool with the following:
BetaManagedAgentsMcpToolsetParams.builder() .type(BetaManagedAgentsMcpToolsetParams.Type.MCP_TOOLSET) .mcpServerName(mcpServerName) .build()
-
additionalProperties
final BetaManagedAgentsSessionAgentUpdate.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionAgentUpdate.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionAgentUpdate.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionAgentUpdate.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionAgentUpdate.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionAgentUpdate build()
Returns an immutable instance of BetaManagedAgentsSessionAgentUpdate.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-