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)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)
-
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.
-
-
-
-