Package com.openai.models.beta.responses
Class BetaToolChoiceCustom
-
- All Implemented Interfaces:
public final class BetaToolChoiceCustomUse this option to force the model to call a specific custom tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChoiceCustom.BuilderA builder for BetaToolChoiceCustom.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the custom tool to call. final JsonValue_type()For custom tool calling, the type is always custom.final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaToolChoiceCustom.BuildertoBuilder()final BetaToolChoiceCustomvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChoiceCustom.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChoiceCustom. -
-
Method Detail
-
_type
final JsonValue _type()
For custom tool calling, the type is always
custom.Expected to always return the following:
JsonValue.from("custom")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 BetaToolChoiceCustom.Builder toBuilder()
-
validate
final BetaToolChoiceCustom 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 BetaToolChoiceCustom.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChoiceCustom.
The following fields are required:
.name()
-
-
-
-