Class WebSearchToolResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class WebSearchToolResultBlockParam.BuilderA builder for WebSearchToolResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final WebSearchToolResultBlockParam.Builder content(WebSearchToolResultBlockParamContent content)
-
content
final WebSearchToolResultBlockParam.Builder content(JsonField<WebSearchToolResultBlockParamContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed WebSearchToolResultBlockParamContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final WebSearchToolResultBlockParam.Builder content(WebSearchToolResultBlockContent content)
Alias for calling Builder.content with
content.toParam().
-
content
final WebSearchToolResultBlockParam.Builder content(WebSearchToolResultError error)
Alias for calling content with
WebSearchToolResultBlockContent.ofError(error).
-
content
final WebSearchToolResultBlockParam.Builder content(WebSearchToolRequestError requestError)
Alias for calling content with
WebSearchToolResultBlockParamContent.ofRequestError(requestError).
-
contentOfResultBlocks
final WebSearchToolResultBlockParam.Builder contentOfResultBlocks(List<WebSearchResultBlock> resultBlocks)
Alias for calling content with
WebSearchToolResultBlockContent.ofResultBlocks(resultBlocks).
-
contentOfItem
final WebSearchToolResultBlockParam.Builder contentOfItem(List<WebSearchResultBlockParam> item)
Alias for calling content with
WebSearchToolResultBlockParamContent.ofItem(item).
-
toolUseId
final WebSearchToolResultBlockParam.Builder toolUseId(String toolUseId)
-
toolUseId
final WebSearchToolResultBlockParam.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 WebSearchToolResultBlockParam.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 WebSearchToolResultBlockParam.Builder cacheControl(CacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final WebSearchToolResultBlockParam.Builder cacheControl(Optional<CacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final WebSearchToolResultBlockParam.Builder cacheControl(JsonField<CacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed CacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebSearchToolResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebSearchToolResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebSearchToolResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebSearchToolResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebSearchToolResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebSearchToolResultBlockParam build()
Returns an immutable instance of WebSearchToolResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-