Package com.openai.models.beta.threads
Class AssistantToolChoice
-
- All Implemented Interfaces:
public final class AssistantToolChoice
Specifies 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 class
AssistantToolChoice.Builder
A builder for AssistantToolChoice.
public final class
AssistantToolChoice.Type
The type of the tool. If type is
function
, the function name must be set
-
Method Summary
Modifier and Type Method Description final AssistantToolChoice.Type
type()
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.Builder
toBuilder()
final AssistantToolChoice
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AssistantToolChoice.Builder
builder()
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()
-
-
-
-