Class ChatCompletionAllowedToolChoice
-
- All Implemented Interfaces:
public final class ChatCompletionAllowedToolChoiceConstrains the tools available to the model to a pre-defined set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionAllowedToolChoice.BuilderA builder for ChatCompletionAllowedToolChoice.
-
Method Summary
Modifier and Type Method Description final ChatCompletionAllowedToolsallowedTools()Constrains the tools available to the model to a pre-defined set. final JsonValue_type()Allowed tool configuration type. final JsonField<ChatCompletionAllowedTools>_allowedTools()Returns the raw JSON value of allowedTools. final Map<String, JsonValue>_additionalProperties()final ChatCompletionAllowedToolChoice.BuildertoBuilder()final ChatCompletionAllowedToolChoicevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionAllowedToolChoice.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionAllowedToolChoice. -
-
Method Detail
-
allowedTools
final ChatCompletionAllowedTools allowedTools()
Constrains the tools available to the model to a pre-defined set.
-
_type
final JsonValue _type()
Allowed tool configuration type. Always
allowed_tools.Expected to always return the following:
JsonValue.from("allowed_tools")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_allowedTools
final JsonField<ChatCompletionAllowedTools> _allowedTools()
Returns the raw JSON value of allowedTools.
Unlike allowedTools, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionAllowedToolChoice.Builder toBuilder()
-
validate
final ChatCompletionAllowedToolChoice validate()
-
builder
final static ChatCompletionAllowedToolChoice.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionAllowedToolChoice.
The following fields are required:
.allowedTools()
-
-
-
-