Class ChatCompletionAllowedToolChoice
-
- All Implemented Interfaces:
public final class ChatCompletionAllowedToolChoice
Constrains the tools available to the model to a pre-defined set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionAllowedToolChoice.Builder
A builder for ChatCompletionAllowedToolChoice.
-
Method Summary
Modifier and Type Method Description final ChatCompletionAllowedTools
allowedTools()
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.Builder
toBuilder()
final ChatCompletionAllowedToolChoice
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionAllowedToolChoice.Builder
builder()
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()
-
-
-
-