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()The type of the tool. final JsonField<AssistantToolChoiceFunction>_function()final Map<String, JsonValue>_additionalProperties()final AssistantToolChoicevalidate()final AssistantToolChoice.BuildertoBuilder()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()
The type of the tool. If type is
function, the function name must be set
-
_function
final JsonField<AssistantToolChoiceFunction> _function()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final AssistantToolChoice validate()
-
toBuilder
final AssistantToolChoice.Builder toBuilder()
-
builder
final static AssistantToolChoice.Builder builder()
Returns a mutable builder for constructing an instance of AssistantToolChoice.
The following fields are required:
.type()
-
-
-
-