Package com.openai.models.beta.responses
Class BetaToolChoiceFunction
-
- All Implemented Interfaces:
public final class BetaToolChoiceFunctionUse this option to force the model to call a specific function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChoiceFunction.BuilderA builder for BetaToolChoiceFunction.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the function to call. final JsonValue_type()For function calling, the type is always function.final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaToolChoiceFunction.BuildertoBuilder()final BetaToolChoiceFunctionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChoiceFunction.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChoiceFunction. -
-
Method Detail
-
_type
final JsonValue _type()
For function calling, the type is always
function.Expected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolChoiceFunction.Builder toBuilder()
-
validate
final BetaToolChoiceFunction validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaToolChoiceFunction.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChoiceFunction.
The following fields are required:
.name()
-
-
-
-