Package com.openai.models
Class ChatCompletionNamedToolChoice
-
- All Implemented Interfaces:
public final class ChatCompletionNamedToolChoice
Specifies a tool the model should use. Use to force the model to call a specific function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionNamedToolChoice.Builder
public final class
ChatCompletionNamedToolChoice.Function
public final class
ChatCompletionNamedToolChoice.Type
-
Method Summary
Modifier and Type Method Description final ChatCompletionNamedToolChoice.Function
function()
final ChatCompletionNamedToolChoice.Type
type()
The type of the tool. final JsonField<ChatCompletionNamedToolChoice.Function>
_function()
final JsonField<ChatCompletionNamedToolChoice.Type>
_type()
The type of the tool. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionNamedToolChoice
validate()
final ChatCompletionNamedToolChoice.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionNamedToolChoice.Builder
builder()
-
-
Method Detail
-
function
final ChatCompletionNamedToolChoice.Function function()
-
type
final ChatCompletionNamedToolChoice.Type type()
The type of the tool. Currently, only
function
is supported.
-
_function
final JsonField<ChatCompletionNamedToolChoice.Function> _function()
-
_type
final JsonField<ChatCompletionNamedToolChoice.Type> _type()
The type of the tool. Currently, only
function
is supported.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionNamedToolChoice validate()
-
toBuilder
final ChatCompletionNamedToolChoice.Builder toBuilder()
-
builder
final static ChatCompletionNamedToolChoice.Builder builder()
-
-
-
-