Class WebFetchToolResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class WebFetchToolResultBlockParam.BuilderA builder for WebFetchToolResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final WebFetchToolResultBlockParam.Builder content(WebFetchToolResultBlockParam.Content content)
-
content
final WebFetchToolResultBlockParam.Builder content(JsonField<WebFetchToolResultBlockParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final WebFetchToolResultBlockParam.Builder content(WebFetchToolResultErrorBlockParam webFetchToolResultErrorBlockParam)
Alias for calling content with
Content.ofWebFetchToolResultErrorBlockParam(webFetchToolResultErrorBlockParam).
-
content
final WebFetchToolResultBlockParam.Builder content(WebFetchToolResultErrorBlock webFetchToolResultErrorBlockParam)
Alias for calling content with
webFetchToolResultErrorBlockParam.toParam().
-
content
final WebFetchToolResultBlockParam.Builder content(WebFetchBlockParam webFetchBlockParam)
Alias for calling content with
Content.ofWebFetchBlockParam(webFetchBlockParam).
-
content
final WebFetchToolResultBlockParam.Builder content(WebFetchBlock webFetchBlockParam)
Alias for calling content with
webFetchBlockParam.toParam().
-
toolUseId
final WebFetchToolResultBlockParam.Builder toolUseId(String toolUseId)
-
toolUseId
final WebFetchToolResultBlockParam.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 WebFetchToolResultBlockParam.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_fetch_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final WebFetchToolResultBlockParam.Builder cacheControl(CacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final WebFetchToolResultBlockParam.Builder cacheControl(Optional<CacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final WebFetchToolResultBlockParam.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.
-
caller
final WebFetchToolResultBlockParam.Builder caller(WebFetchToolResultBlockParam.Caller caller)
Tool invocation directly from the model.
-
caller
final WebFetchToolResultBlockParam.Builder caller(JsonField<WebFetchToolResultBlockParam.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 WebFetchToolResultBlockParam.Builder caller(DirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final WebFetchToolResultBlockParam.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final WebFetchToolResultBlockParam.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final WebFetchToolResultBlockParam.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final WebFetchToolResultBlockParam.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
additionalProperties
final WebFetchToolResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebFetchToolResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebFetchToolResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebFetchToolResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebFetchToolResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebFetchToolResultBlockParam build()
Returns an immutable instance of WebFetchToolResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-