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