Class BetaToolChoiceTypes
-
- All Implemented Interfaces:
public final class BetaToolChoiceTypesIndicates 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 classBetaToolChoiceTypes.BuilderA builder for BetaToolChoiceTypes.
public final classBetaToolChoiceTypes.TypeThe type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputercomputer_use_previewcomputer_usecode_interpreterimage_generation
-
Method Summary
Modifier and Type Method Description final BetaToolChoiceTypes.Typetype()The type of hosted tool the model should to use. final JsonField<BetaToolChoiceTypes.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaToolChoiceTypes.BuildertoBuilder()final BetaToolChoiceTypesvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChoiceTypes.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChoiceTypes. -
-
Method Detail
-
type
final BetaToolChoiceTypes.Type type()
The type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputercomputer_use_previewcomputer_usecode_interpreterimage_generation
-
_type
final JsonField<BetaToolChoiceTypes.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 BetaToolChoiceTypes.Builder toBuilder()
-
validate
final BetaToolChoiceTypes 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 BetaToolChoiceTypes.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChoiceTypes.
The following fields are required:
.type()
-
-
-
-