Class BetaWebSearchToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class BetaWebSearchToolResultBlock.BuilderA builder for BetaWebSearchToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaWebSearchToolResultBlock.Builder content(BetaWebSearchToolResultBlockContent content)
-
content
final BetaWebSearchToolResultBlock.Builder content(JsonField<BetaWebSearchToolResultBlockContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed BetaWebSearchToolResultBlockContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaWebSearchToolResultBlock.Builder content(BetaWebSearchToolResultError error)
Alias for calling content with
BetaWebSearchToolResultBlockContent.ofError(error).
-
contentOfResultBlocks
final BetaWebSearchToolResultBlock.Builder contentOfResultBlocks(List<BetaWebSearchResultBlock> resultBlocks)
Alias for calling content with
BetaWebSearchToolResultBlockContent.ofResultBlocks(resultBlocks).
-
toolUseId
final BetaWebSearchToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaWebSearchToolResultBlock.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 BetaWebSearchToolResultBlock.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.
-
caller
final BetaWebSearchToolResultBlock.Builder caller(BetaWebSearchToolResultBlock.Caller caller)
Tool invocation directly from the model.
-
caller
final BetaWebSearchToolResultBlock.Builder caller(JsonField<BetaWebSearchToolResultBlock.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 BetaWebSearchToolResultBlock.Builder caller(BetaDirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final BetaWebSearchToolResultBlock.Builder caller(BetaServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BetaWebSearchToolResultBlock.Builder caller(BetaServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final BetaWebSearchToolResultBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BetaWebSearchToolResultBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller20260120.builder() .toolId(toolId) .build()
-
additionalProperties
final BetaWebSearchToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWebSearchToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWebSearchToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWebSearchToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWebSearchToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWebSearchToolResultBlock build()
Returns an immutable instance of BetaWebSearchToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-