Class BetaServerToolUseBlockParam.Caller
-
- All Implemented Interfaces:
public final class BetaServerToolUseBlockParam.CallerTool invocation directly from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaServerToolUseBlockParam.Caller.VisitorAn interface that defines how to map each variant of Caller to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaDirectCaller>direct()Tool invocation directly from the model. final Optional<BetaServerToolCaller>codeExecution20250825()Tool invocation generated by a server-side tool. final BooleanisDirect()final BooleanisCodeExecution20250825()final BetaDirectCallerasDirect()Tool invocation directly from the model. final BetaServerToolCallerasCodeExecution20250825()Tool invocation generated by a server-side tool. final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaServerToolUseBlockParam.Caller.Visitor<T> visitor)final BetaServerToolUseBlockParam.Callervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaServerToolUseBlockParam.CallerofDirect(BetaDirectCaller direct)Tool invocation directly from the model. final static BetaServerToolUseBlockParam.CallerofCodeExecution20250825(BetaServerToolCaller codeExecution20250825)Tool invocation generated by a server-side tool. -
-
Method Detail
-
direct
final Optional<BetaDirectCaller> direct()
Tool invocation directly from the model.
-
codeExecution20250825
final Optional<BetaServerToolCaller> codeExecution20250825()
Tool invocation generated by a server-side tool.
-
isCodeExecution20250825
final Boolean isCodeExecution20250825()
-
asDirect
final BetaDirectCaller asDirect()
Tool invocation directly from the model.
-
asCodeExecution20250825
final BetaServerToolCaller asCodeExecution20250825()
Tool invocation generated by a server-side tool.
-
accept
final <T extends Any> T accept(BetaServerToolUseBlockParam.Caller.Visitor<T> visitor)
-
validate
final BetaServerToolUseBlockParam.Caller validate()
-
ofDirect
final static BetaServerToolUseBlockParam.Caller ofDirect(BetaDirectCaller direct)
Tool invocation directly from the model.
-
ofCodeExecution20250825
final static BetaServerToolUseBlockParam.Caller ofCodeExecution20250825(BetaServerToolCaller codeExecution20250825)
Tool invocation generated by a server-side tool.
-
-
-
-