Class ChatCompletionMessageCustomToolCall
-
- All Implemented Interfaces:
public final class ChatCompletionMessageCustomToolCallA call to a custom tool created by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionMessageCustomToolCall.BuilderA builder for ChatCompletionMessageCustomToolCall.
public final classChatCompletionMessageCustomToolCall.CustomThe custom tool that the model called.
-
Method Summary
Modifier and Type Method Description final Stringid()The ID of the tool call. final ChatCompletionMessageCustomToolCall.Customcustom()The custom tool that the model called. final JsonValue_type()The type of the tool. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ChatCompletionMessageCustomToolCall.Custom>_custom()Returns the raw JSON value of custom. final Map<String, JsonValue>_additionalProperties()final ChatCompletionMessageCustomToolCall.BuildertoBuilder()final ChatCompletionMessageCustomToolCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionMessageCustomToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionMessageCustomToolCall. -
-
Method Detail
-
custom
final ChatCompletionMessageCustomToolCall.Custom custom()
The custom tool that the model called.
-
_type
final JsonValue _type()
The type of the tool. 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).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_custom
final JsonField<ChatCompletionMessageCustomToolCall.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 ChatCompletionMessageCustomToolCall.Builder toBuilder()
-
validate
final ChatCompletionMessageCustomToolCall 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 ChatCompletionMessageCustomToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionMessageCustomToolCall.
The following fields are required:
.id() .custom()
-
-
-
-