Class WebFetchToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class WebFetchToolResultBlock.BuilderA builder for WebFetchToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
caller
final WebFetchToolResultBlock.Builder caller(WebFetchToolResultBlock.Caller caller)
Tool invocation directly from the model.
-
caller
final WebFetchToolResultBlock.Builder caller(JsonField<WebFetchToolResultBlock.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 WebFetchToolResultBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final WebFetchToolResultBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final WebFetchToolResultBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final WebFetchToolResultBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final WebFetchToolResultBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
content
final WebFetchToolResultBlock.Builder content(WebFetchToolResultBlock.Content content)
-
content
final WebFetchToolResultBlock.Builder content(JsonField<WebFetchToolResultBlock.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 WebFetchToolResultBlock.Builder content(WebFetchToolResultErrorBlock webFetchToolResultErrorBlock)
Alias for calling content with
Content.ofWebFetchToolResultErrorBlock(webFetchToolResultErrorBlock).
-
content
final WebFetchToolResultBlock.Builder content(WebFetchBlock webFetchBlock)
Alias for calling content with
Content.ofWebFetchBlock(webFetchBlock).
-
toolUseId
final WebFetchToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final WebFetchToolResultBlock.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 WebFetchToolResultBlock.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.
-
additionalProperties
final WebFetchToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebFetchToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebFetchToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebFetchToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebFetchToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebFetchToolResultBlock build()
Returns an immutable instance of WebFetchToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.caller() .content() .toolUseId()
-
-
-
-