Class ChatCompletionNamedToolChoiceCustom
-
- All Implemented Interfaces:
public final class ChatCompletionNamedToolChoiceCustom
Specifies a tool the model should use. Use to force the model to call a specific custom tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionNamedToolChoiceCustom.Builder
A builder for ChatCompletionNamedToolChoiceCustom.
public final class
ChatCompletionNamedToolChoiceCustom.Custom
-
Method Summary
Modifier and Type Method Description final ChatCompletionNamedToolChoiceCustom.Custom
custom()
final JsonValue
_type()
For custom tool calling, the type is always custom
.final JsonField<ChatCompletionNamedToolChoiceCustom.Custom>
_custom()
Returns the raw JSON value of custom. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionNamedToolChoiceCustom.Builder
toBuilder()
final ChatCompletionNamedToolChoiceCustom
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionNamedToolChoiceCustom.Builder
builder()
Returns a mutable builder for constructing an instance of ChatCompletionNamedToolChoiceCustom. -
-
Method Detail
-
custom
final ChatCompletionNamedToolChoiceCustom.Custom custom()
-
_type
final JsonValue _type()
For custom tool calling, the type is always
custom
.Expected to always return the following:
JsonValue.from("custom")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_custom
final JsonField<ChatCompletionNamedToolChoiceCustom.Custom> _custom()
Returns the raw JSON value of custom.
Unlike custom, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionNamedToolChoiceCustom.Builder toBuilder()
-
validate
final ChatCompletionNamedToolChoiceCustom validate()
-
builder
final static ChatCompletionNamedToolChoiceCustom.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionNamedToolChoiceCustom.
The following fields are required:
.custom()
-
-
-
-