Interface MessageCountTokensTool.Visitor
-
- All Implemented Interfaces:
public interface MessageCountTokensTool.Visitor<T extends Object>An interface that defines how to map each variant of MessageCountTokensTool to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitTool(Tool tool)abstract TvisitToolBash20250124(ToolBash20250124 toolBash20250124)abstract TvisitCodeExecutionTool20250522(CodeExecutionTool20250522 codeExecutionTool20250522)abstract TvisitCodeExecutionTool20250825(CodeExecutionTool20250825 codeExecutionTool20250825)abstract TvisitCodeExecutionTool20260120(CodeExecutionTool20260120 codeExecutionTool20260120)A toolsentry for the code execution tool, versioncode_execution_20260120.abstract TvisitCodeExecutionTool20260521(CodeExecutionTool20260521 codeExecutionTool20260521)Code execution tool with REPL state persistence. abstract TvisitBrowserToolset20260801(BrowserToolset20260801 browserToolset20260801)The browser toolset: a single `tools[]`entry (carrying no`name`) that declares the browser tool family.abstract TvisitMemoryTool20250818(MemoryTool20250818 memoryTool20250818)abstract TvisitComputerToolset20260801(ComputerToolset20260801 computerToolset20260801)The computer toolset: a single `tools[]`entry (carrying no`name`) that declares the computer tool family.abstract TvisitToolTextEditor20250124(ToolTextEditor20250124 toolTextEditor20250124)abstract TvisitToolTextEditor20250429(ToolTextEditor20250429 toolTextEditor20250429)abstract TvisitToolTextEditor20250728(ToolTextEditor20250728 toolTextEditor20250728)abstract TvisitWebSearchTool20250305(WebSearchTool20250305 webSearchTool20250305)abstract TvisitWebFetchTool20250910(WebFetchTool20250910 webFetchTool20250910)abstract TvisitWebSearchTool20260209(WebSearchTool20260209 webSearchTool20260209)abstract TvisitWebFetchTool20260209(WebFetchTool20260209 webFetchTool20260209)abstract TvisitWebFetchTool20260309(WebFetchTool20260309 webFetchTool20260309)Web fetch tool with use_cache parameter for bypassing cached content. abstract TvisitWebSearchTool20260318(WebSearchTool20260318 webSearchTool20260318)abstract TvisitWebFetchTool20260318(WebFetchTool20260318 webFetchTool20260318)abstract TvisitToolSearchToolBm25_20251119(ToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)abstract TvisitToolSearchToolRegex20251119(ToolSearchToolRegex20251119 toolSearchToolRegex20251119)Tunknown(JsonValue json)Maps an unknown variant of MessageCountTokensTool to a value of type T. -
-
Method Detail
-
visitToolBash20250124
abstract T visitToolBash20250124(ToolBash20250124 toolBash20250124)
-
visitCodeExecutionTool20250522
abstract T visitCodeExecutionTool20250522(CodeExecutionTool20250522 codeExecutionTool20250522)
-
visitCodeExecutionTool20250825
abstract T visitCodeExecutionTool20250825(CodeExecutionTool20250825 codeExecutionTool20250825)
-
visitCodeExecutionTool20260120
abstract T visitCodeExecutionTool20260120(CodeExecutionTool20260120 codeExecutionTool20260120)
A
toolsentry for the code execution tool, versioncode_execution_20260120. It adds REPL state persistence to versioncode_execution_20250825.REPL state persistence applies with programmatic tool calling. With it, the Python interpreter state, such as variable bindings, persists across requests that reuse the container.
See the code execution tool guide to learn what each tool version adds.
-
visitCodeExecutionTool20260521
abstract T visitCodeExecutionTool20260521(CodeExecutionTool20260521 codeExecutionTool20260521)
Code execution tool with REPL state persistence.
-
visitBrowserToolset20260801
abstract T visitBrowserToolset20260801(BrowserToolset20260801 browserToolset20260801)
The browser toolset: a single
`tools[]`entry (carrying no`name`) that declares the browser tool family. The model is served the family's tool with any members disabled via`configs`removed from its schema.
-
visitMemoryTool20250818
abstract T visitMemoryTool20250818(MemoryTool20250818 memoryTool20250818)
-
visitComputerToolset20260801
abstract T visitComputerToolset20260801(ComputerToolset20260801 computerToolset20260801)
The computer toolset: a single
`tools[]`entry (carrying no`name`) that declares the computer tool family. The model is served the family's tool with any members disabled via`configs`removed from its schema. Every member is enabled by default, zoom included. The single-tool options`display_number`and`enable_zoom`are not fields of a toolset entry — it carries only`type`,`configs`, and`cache_control`; zoom is controlled via`configs.zoom.enabled`.
-
visitToolTextEditor20250124
abstract T visitToolTextEditor20250124(ToolTextEditor20250124 toolTextEditor20250124)
-
visitToolTextEditor20250429
abstract T visitToolTextEditor20250429(ToolTextEditor20250429 toolTextEditor20250429)
-
visitToolTextEditor20250728
abstract T visitToolTextEditor20250728(ToolTextEditor20250728 toolTextEditor20250728)
-
visitWebSearchTool20250305
abstract T visitWebSearchTool20250305(WebSearchTool20250305 webSearchTool20250305)
-
visitWebFetchTool20250910
abstract T visitWebFetchTool20250910(WebFetchTool20250910 webFetchTool20250910)
-
visitWebSearchTool20260209
abstract T visitWebSearchTool20260209(WebSearchTool20260209 webSearchTool20260209)
-
visitWebFetchTool20260209
abstract T visitWebFetchTool20260209(WebFetchTool20260209 webFetchTool20260209)
-
visitWebFetchTool20260309
abstract T visitWebFetchTool20260309(WebFetchTool20260309 webFetchTool20260309)
Web fetch tool with use_cache parameter for bypassing cached content.
-
visitWebSearchTool20260318
abstract T visitWebSearchTool20260318(WebSearchTool20260318 webSearchTool20260318)
-
visitWebFetchTool20260318
abstract T visitWebFetchTool20260318(WebFetchTool20260318 webFetchTool20260318)
-
visitToolSearchToolBm25_20251119
abstract T visitToolSearchToolBm25_20251119(ToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)
-
visitToolSearchToolRegex20251119
abstract T visitToolSearchToolRegex20251119(ToolSearchToolRegex20251119 toolSearchToolRegex20251119)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of MessageCountTokensTool to a value of type T.
An instance of MessageCountTokensTool 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.
-
-
-
-