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