Package com.anthropic.models.messages
Interface ToolUnion.Visitor
-
- All Implemented Interfaces:
public interface ToolUnion.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitTool(Tool tool)abstract TvisitBash20250124(ToolBash20250124 bash20250124)abstract TvisitTextEditor20250124(ToolTextEditor20250124 textEditor20250124)abstract TvisitTextEditor20250429(ToolUnion.TextEditor20250429 textEditor20250429)abstract TvisitWebSearchTool20250305(WebSearchTool20250305 webSearchTool20250305)Tunknown(JsonValue json)Maps an unknown variant of ToolUnion to a value of type T. -
-
Method Detail
-
visitBash20250124
abstract T visitBash20250124(ToolBash20250124 bash20250124)
-
visitTextEditor20250124
abstract T visitTextEditor20250124(ToolTextEditor20250124 textEditor20250124)
-
visitTextEditor20250429
abstract T visitTextEditor20250429(ToolUnion.TextEditor20250429 textEditor20250429)
-
visitWebSearchTool20250305
abstract T visitWebSearchTool20250305(WebSearchTool20250305 webSearchTool20250305)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ToolUnion to a value of type T.
An instance of ToolUnion 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.
-
-
-
-