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