Package com.anthropic.models.beta.agents
Interface AgentUpdateParams.Tool.Visitor
-
- All Implemented Interfaces:
public interface AgentUpdateParams.Tool.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitAgentToolset20260401(BetaManagedAgentsAgentToolset20260401Params agentToolset20260401)Configuration for built-in agent tools. abstract TvisitMcpToolset(BetaManagedAgentsMcpToolsetParams mcpToolset)Configuration for tools from an MCP server defined in mcp_servers.abstract TvisitCustom(BetaManagedAgentsCustomToolParams custom)A custom tool that is executed by the API client rather than the agent. Tunknown(JsonValue json)Maps an unknown variant of Tool to a value of type T. -
-
Method Detail
-
visitAgentToolset20260401
abstract T visitAgentToolset20260401(BetaManagedAgentsAgentToolset20260401Params agentToolset20260401)
Configuration for built-in agent tools. Use this to enable or disable groups of tools available to the agent.
-
visitMcpToolset
abstract T visitMcpToolset(BetaManagedAgentsMcpToolsetParams mcpToolset)
Configuration for tools from an MCP server defined in
mcp_servers.
-
visitCustom
abstract T visitCustom(BetaManagedAgentsCustomToolParams custom)
A custom tool that is executed by the API client rather than the agent. When the agent calls this tool, an
agent.custom_tool_useevent is emitted and the session goes idle, waiting for the client to provide the result via auser.custom_tool_resultevent.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Tool to a value of type T.
An instance of Tool can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-