Package com.openai.models.responses
Class ToolChoiceCustom.Builder
-
- All Implemented Interfaces:
public final class ToolChoiceCustom.BuilderA builder for ToolChoiceCustom.
-
-
Method Summary
Modifier and Type Method Description final ToolChoiceCustom.Buildername(String name)The name of the custom tool to call. final ToolChoiceCustom.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ToolChoiceCustom.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ToolChoiceCustom.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceCustom.BuilderputAdditionalProperty(String key, JsonValue value)final ToolChoiceCustom.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceCustom.BuilderremoveAdditionalProperty(String key)final ToolChoiceCustom.BuilderremoveAllAdditionalProperties(Set<String> keys)final ToolChoiceCustombuild()Returns an immutable instance of ToolChoiceCustom. -
-
Method Detail
-
name
final ToolChoiceCustom.Builder name(String name)
The name of the custom tool to call.
-
name
final ToolChoiceCustom.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 ToolChoiceCustom.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("custom")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ToolChoiceCustom.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolChoiceCustom.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolChoiceCustom.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolChoiceCustom.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolChoiceCustom.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolChoiceCustom build()
Returns an immutable instance of ToolChoiceCustom.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-