Class ChatCompletionNamedToolChoice
-
- All Implemented Interfaces:
public final class ChatCompletionNamedToolChoiceSpecifies 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 classChatCompletionNamedToolChoice.BuilderA builder for ChatCompletionNamedToolChoice.
public final classChatCompletionNamedToolChoice.Function
-
Method Summary
Modifier and Type Method Description final ChatCompletionNamedToolChoice.Functionfunction()final JsonValue_type()For function calling, the type is always function.final JsonField<ChatCompletionNamedToolChoice.Function>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final ChatCompletionNamedToolChoice.BuildertoBuilder()final ChatCompletionNamedToolChoicevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionNamedToolChoice.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionNamedToolChoice. -
-
Method Detail
-
function
final ChatCompletionNamedToolChoice.Function function()
-
_type
final JsonValue _type()
For function calling, the type is always
function.Expected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_function
final JsonField<ChatCompletionNamedToolChoice.Function> _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 ChatCompletionNamedToolChoice.Builder toBuilder()
-
validate
final ChatCompletionNamedToolChoice validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ChatCompletionNamedToolChoice.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionNamedToolChoice.
The following fields are required:
.function()
-
-
-
-