Package com.openai.models.responses
Class ToolChoiceTypes
-
- All Implemented Interfaces:
public final class ToolChoiceTypesIndicates that the model should use a built-in tool to generate a response. Learn more about built-in tools.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolChoiceTypes.BuilderA builder for ToolChoiceTypes.
public final classToolChoiceTypes.TypeThe type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputer_use_previewcode_interpreterimage_generation
-
Method Summary
Modifier and Type Method Description final ToolChoiceTypes.Typetype()The type of hosted tool the model should to use. final JsonField<ToolChoiceTypes.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ToolChoiceTypes.BuildertoBuilder()final ToolChoiceTypesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolChoiceTypes.Builderbuilder()Returns a mutable builder for constructing an instance of ToolChoiceTypes. -
-
Method Detail
-
type
final ToolChoiceTypes.Type type()
The type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputer_use_previewcode_interpreterimage_generation
-
_type
final JsonField<ToolChoiceTypes.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ToolChoiceTypes.Builder toBuilder()
-
validate
final ToolChoiceTypes validate()
-
builder
final static ToolChoiceTypes.Builder builder()
Returns a mutable builder for constructing an instance of ToolChoiceTypes.
The following fields are required:
.type()
-
-
-
-