Class ChatCompletionNamedToolChoiceCustom
-
- All Implemented Interfaces:
public final class ChatCompletionNamedToolChoiceCustomSpecifies 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 classChatCompletionNamedToolChoiceCustom.BuilderA builder for ChatCompletionNamedToolChoiceCustom.
public final classChatCompletionNamedToolChoiceCustom.Custom
-
Method Summary
Modifier and Type Method Description final ChatCompletionNamedToolChoiceCustom.Customcustom()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.BuildertoBuilder()final ChatCompletionNamedToolChoiceCustomvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionNamedToolChoiceCustom.Builderbuilder()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()
-
-
-
-