Class ChatCompletionMessageToolCall
-
- All Implemented Interfaces:
public final class ChatCompletionMessageToolCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionMessageToolCall.Builder
A builder for ChatCompletionMessageToolCall.
public final class
ChatCompletionMessageToolCall.Function
The function that the model called.
-
Method Summary
Modifier and Type Method Description final String
id()
The ID of the tool call. final ChatCompletionMessageToolCall.Function
function()
The function 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<ChatCompletionMessageToolCall.Function>
_function()
Returns the raw JSON value of function. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionMessageToolCall
validate()
final ChatCompletionMessageToolCall.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionMessageToolCall.Builder
builder()
Returns a mutable builder for constructing an instance of ChatCompletionMessageToolCall. -
-
Method Detail
-
function
final ChatCompletionMessageToolCall.Function function()
The function that the model called.
-
_type
final JsonValue _type()
The type of the tool. Currently, only
function
is supported.Expected to always return the following:
JsonValue.from("function")
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.
-
_function
final JsonField<ChatCompletionMessageToolCall.Function> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionMessageToolCall validate()
-
toBuilder
final ChatCompletionMessageToolCall.Builder toBuilder()
-
builder
final static ChatCompletionMessageToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionMessageToolCall.
The following fields are required:
.id() .function()
-
-
-
-