Package com.anthropic.models.messages
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 TvisitToolTextEditor20250124(ToolTextEditor20250124 toolTextEditor20250124)Tunknown(JsonValue json)Maps an unknown variant of MessageCountTokensTool to a value of type T. -
-
Method Detail
-
visitToolBash20250124
abstract T visitToolBash20250124(ToolBash20250124 toolBash20250124)
-
visitToolTextEditor20250124
abstract T visitToolTextEditor20250124(ToolTextEditor20250124 toolTextEditor20250124)
-
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.
-
-
-
-