Package com.openai.models.beta.threads
Class AssistantToolChoice
-
- All Implemented Interfaces:
public final class AssistantToolChoiceSpecifies a tool the model should use. Use to force the model to call a specific tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAssistantToolChoice.BuilderA builder for AssistantToolChoice.
public final classAssistantToolChoice.TypeThe type of the tool. If type is
function, the function name must be set
-
Method Summary
Modifier and Type Method Description final AssistantToolChoice.Typetype()The type of the tool. final Optional<AssistantToolChoiceFunction>function()final JsonField<AssistantToolChoice.Type>_type()Returns the raw JSON value of type. final JsonField<AssistantToolChoiceFunction>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final AssistantToolChoice.BuildertoBuilder()final AssistantToolChoicevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AssistantToolChoice.Builderbuilder()Returns a mutable builder for constructing an instance of AssistantToolChoice. -
-
Method Detail
-
type
final AssistantToolChoice.Type type()
The type of the tool. If type is
function, the function name must be set
-
function
final Optional<AssistantToolChoiceFunction> function()
-
_type
final JsonField<AssistantToolChoice.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_function
final JsonField<AssistantToolChoiceFunction> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final AssistantToolChoice.Builder toBuilder()
-
validate
final AssistantToolChoice validate()
-
builder
final static AssistantToolChoice.Builder builder()
Returns a mutable builder for constructing an instance of AssistantToolChoice.
The following fields are required:
.type()
-
-
-
-