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