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