Class ServerToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ServerToolUseBlock.BuilderA builder for ServerToolUseBlock.
-
-
Method Summary
-
-
Method Detail
-
id
final ServerToolUseBlock.Builder id(String id)
-
id
final ServerToolUseBlock.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final ServerToolUseBlock.Builder caller(ServerToolUseBlock.Caller caller)
Tool invocation directly from the model.
-
caller
final ServerToolUseBlock.Builder caller(JsonField<ServerToolUseBlock.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 ServerToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final ServerToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final ServerToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final ServerToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final ServerToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
input
final ServerToolUseBlock.Builder input(JsonValue input)
-
name
final ServerToolUseBlock.Builder name(ServerToolUseBlock.Name name)
-
name
final ServerToolUseBlock.Builder name(JsonField<ServerToolUseBlock.Name> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed Name value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ServerToolUseBlock.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("server_tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ServerToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ServerToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ServerToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ServerToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ServerToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ServerToolUseBlock build()
Returns an immutable instance of ServerToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input() .name()
-
-
-
-