Class ChatCompletionMessageCustomToolCall
-
- All Implemented Interfaces:
public final class ChatCompletionMessageCustomToolCall
A call to a custom tool created by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionMessageCustomToolCall.Builder
A builder for ChatCompletionMessageCustomToolCall.
public final class
ChatCompletionMessageCustomToolCall.Custom
The custom tool that the model called.
-
Method Summary
Modifier and Type Method Description final String
id()
The ID of the tool call. final ChatCompletionMessageCustomToolCall.Custom
custom()
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.Builder
toBuilder()
final ChatCompletionMessageCustomToolCall
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionMessageCustomToolCall.Builder
builder()
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()
-
builder
final static ChatCompletionMessageCustomToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionMessageCustomToolCall.
The following fields are required:
.id() .custom()
-
-
-
-