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