Class BetaWebFetchToolResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaWebFetchToolResultBlockParam.BuilderA builder for BetaWebFetchToolResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaWebFetchToolResultBlockParam.Builder content(BetaWebFetchToolResultBlockParam.Content content)
-
content
final BetaWebFetchToolResultBlockParam.Builder content(JsonField<BetaWebFetchToolResultBlockParam.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 BetaWebFetchToolResultBlockParam.Builder content(BetaWebFetchToolResultErrorBlockParam betaWebFetchToolResultErrorBlockParam)
Alias for calling content with
Content.ofBetaWebFetchToolResultErrorBlockParam(betaWebFetchToolResultErrorBlockParam).
-
content
final BetaWebFetchToolResultBlockParam.Builder content(BetaWebFetchToolResultErrorBlock betaWebFetchToolResultErrorBlockParam)
Alias for calling content with
betaWebFetchToolResultErrorBlockParam.toParam().
-
content
final BetaWebFetchToolResultBlockParam.Builder content(BetaWebFetchBlockParam betaWebFetchBlockParam)
Alias for calling content with
Content.ofBetaWebFetchBlockParam(betaWebFetchBlockParam).
-
content
final BetaWebFetchToolResultBlockParam.Builder content(BetaWebFetchBlock betaWebFetchBlockParam)
Alias for calling content with
betaWebFetchBlockParam.toParam().
-
toolUseId
final BetaWebFetchToolResultBlockParam.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaWebFetchToolResultBlockParam.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 BetaWebFetchToolResultBlockParam.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 BetaWebFetchToolResultBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaWebFetchToolResultBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaWebFetchToolResultBlockParam.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 BetaWebFetchToolResultBlockParam.Builder caller(BetaWebFetchToolResultBlockParam.Caller caller)
Tool invocation directly from the model.
-
caller
final BetaWebFetchToolResultBlockParam.Builder caller(JsonField<BetaWebFetchToolResultBlockParam.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 BetaWebFetchToolResultBlockParam.Builder caller(BetaDirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final BetaWebFetchToolResultBlockParam.Builder caller(BetaServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BetaWebFetchToolResultBlockParam.Builder caller(BetaServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final BetaWebFetchToolResultBlockParam.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BetaWebFetchToolResultBlockParam.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller20260120.builder() .toolId(toolId) .build()
-
additionalProperties
final BetaWebFetchToolResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWebFetchToolResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWebFetchToolResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWebFetchToolResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWebFetchToolResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWebFetchToolResultBlockParam build()
Returns an immutable instance of BetaWebFetchToolResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-