Package com.anthropic.models
Interface BetaToolUnion.Visitor
-
- All Implemented Interfaces:
public interface BetaToolUnion.Visitor<T extends Object>An interface that defines how to map each variant of BetaToolUnion to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitBetaTool(BetaTool betaTool)abstract TvisitComputerUse20241022(BetaToolComputerUse20241022 computerUse20241022)abstract TvisitBash20241022(BetaToolBash20241022 bash20241022)abstract TvisitTextEditor20241022(BetaToolTextEditor20241022 textEditor20241022)Tunknown(JsonValue json)Maps an unknown variant of BetaToolUnion to a value of type T. -
-
Method Detail
-
visitBetaTool
abstract T visitBetaTool(BetaTool betaTool)
-
visitComputerUse20241022
abstract T visitComputerUse20241022(BetaToolComputerUse20241022 computerUse20241022)
-
visitBash20241022
abstract T visitBash20241022(BetaToolBash20241022 bash20241022)
-
visitTextEditor20241022
abstract T visitTextEditor20241022(BetaToolTextEditor20241022 textEditor20241022)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaToolUnion to a value of type T.
An instance of BetaToolUnion 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.
-
-
-
-