Package com.anthropic.models.messages
Class WebSearchToolResultBlockParam.Caller
-
- All Implemented Interfaces:
public final class WebSearchToolResultBlockParam.CallerTool invocation directly from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebSearchToolResultBlockParam.Caller.VisitorAn interface that defines how to map each variant of Caller to a value of type T.
-
Method Summary
-
-
Method Detail
-
direct
final Optional<DirectCaller> direct()
Tool invocation directly from the model.
-
codeExecution20250825
final Optional<ServerToolCaller> codeExecution20250825()
Tool invocation generated by a server-side tool.
-
codeExecution20260120
final Optional<ServerToolCaller20260120> codeExecution20260120()
-
isCodeExecution20250825
final Boolean isCodeExecution20250825()
-
isCodeExecution20260120
final Boolean isCodeExecution20260120()
-
asDirect
final DirectCaller asDirect()
Tool invocation directly from the model.
-
asCodeExecution20250825
final ServerToolCaller asCodeExecution20250825()
Tool invocation generated by a server-side tool.
-
asCodeExecution20260120
final ServerToolCaller20260120 asCodeExecution20260120()
-
accept
final <T extends Any> T accept(WebSearchToolResultBlockParam.Caller.Visitor<T> visitor)
-
validate
final WebSearchToolResultBlockParam.Caller validate()
-
ofDirect
final static WebSearchToolResultBlockParam.Caller ofDirect(DirectCaller direct)
Tool invocation directly from the model.
-
ofCodeExecution20250825
final static WebSearchToolResultBlockParam.Caller ofCodeExecution20250825(ServerToolCaller codeExecution20250825)
Tool invocation generated by a server-side tool.
-
ofCodeExecution20260120
final static WebSearchToolResultBlockParam.Caller ofCodeExecution20260120(ServerToolCaller20260120 codeExecution20260120)
-
-
-
-