Class WebSearchToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class WebSearchToolResultBlock.BuilderA builder for WebSearchToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
caller
final WebSearchToolResultBlock.Builder caller(WebSearchToolResultBlock.Caller caller)
Tool invocation directly from the model.
-
caller
final WebSearchToolResultBlock.Builder caller(JsonField<WebSearchToolResultBlock.Caller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed Caller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final WebSearchToolResultBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final WebSearchToolResultBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final WebSearchToolResultBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final WebSearchToolResultBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final WebSearchToolResultBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
content
final WebSearchToolResultBlock.Builder content(WebSearchToolResultBlockContent content)
-
content
final WebSearchToolResultBlock.Builder content(JsonField<WebSearchToolResultBlockContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed WebSearchToolResultBlockContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final WebSearchToolResultBlock.Builder content(WebSearchToolResultError error)
Alias for calling content with
WebSearchToolResultBlockContent.ofError(error).
-
contentOfResultBlocks
final WebSearchToolResultBlock.Builder contentOfResultBlocks(List<WebSearchResultBlock> resultBlocks)
Alias for calling content with
WebSearchToolResultBlockContent.ofResultBlocks(resultBlocks).
-
toolUseId
final WebSearchToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final WebSearchToolResultBlock.Builder toolUseId(JsonField<String> toolUseId)
Sets Builder.toolUseId to an arbitrary JSON value.
You should usually call Builder.toolUseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final WebSearchToolResultBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("web_search_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebSearchToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebSearchToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebSearchToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebSearchToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebSearchToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebSearchToolResultBlock build()
Returns an immutable instance of WebSearchToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.caller() .content() .toolUseId()
-
-
-
-