Class BetaToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class BetaToolUseBlock.BuilderA builder for BetaToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final BetaToolUseBlock.Builderid(String id)final BetaToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaToolUseBlock.Builderinput(JsonValue input)final BetaToolUseBlock.Buildername(String name)final BetaToolUseBlock.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final BetaToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaToolUseBlock.Buildercaller(BetaToolUseBlock.Caller caller)Tool invocation directly from the model. final BetaToolUseBlock.Buildercaller(JsonField<BetaToolUseBlock.Caller> caller)Sets Builder.caller to an arbitrary JSON value. final BetaToolUseBlock.Buildercaller(BetaDirectCaller direct)Alias for calling caller with Caller.ofDirect(direct).final BetaToolUseBlock.Buildercaller(BetaServerToolCaller codeExecution20250825)Alias for calling caller with Caller.ofCodeExecution20250825(codeExecution20250825).final BetaToolUseBlock.Buildercaller(BetaServerToolCaller20260120 codeExecution20260120)Alias for calling caller with Caller.ofCodeExecution20260120(codeExecution20260120).final BetaToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: BetaServerToolCaller.builder() .toolId(toolId) .build()final BetaToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: BetaServerToolCaller20260120.builder() .toolId(toolId) .build()final BetaToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final BetaToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaToolUseBlock.BuilderremoveAdditionalProperty(String key)final BetaToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaToolUseBlockbuild()Returns an immutable instance of BetaToolUseBlock. -
-
Method Detail
-
id
final BetaToolUseBlock.Builder id(String id)
-
id
final BetaToolUseBlock.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.
-
input
final BetaToolUseBlock.Builder input(JsonValue input)
-
name
final BetaToolUseBlock.Builder name(String name)
-
name
final BetaToolUseBlock.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name 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 BetaToolUseBlock.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("tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaToolUseBlock.Builder caller(BetaToolUseBlock.Caller caller)
Tool invocation directly from the model.
-
caller
final BetaToolUseBlock.Builder caller(JsonField<BetaToolUseBlock.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 BetaToolUseBlock.Builder caller(BetaDirectCaller direct)
Alias for calling caller with
Caller.ofDirect(direct).
-
caller
final BetaToolUseBlock.Builder caller(BetaServerToolCaller codeExecution20250825)
Alias for calling caller with
Caller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BetaToolUseBlock.Builder caller(BetaServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
Caller.ofCodeExecution20260120(codeExecution20260120).
-
codeExecution20250825Caller
final BetaToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BetaToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller20260120.builder() .toolId(toolId) .build()
-
additionalProperties
final BetaToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaToolUseBlock build()
Returns an immutable instance of BetaToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .name()
-
-
-
-