Package com.openai.models
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()
The type of the tool. final JsonField<AssistantToolChoiceFunction>
_function()
final Map<String, JsonValue>
_additionalProperties()
final AssistantToolChoice
validate()
final AssistantToolChoice.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AssistantToolChoice.Builder
builder()
-
-
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()
-
-
-
-