Class ChatCompletionMessageFunctionToolCall
-
- All Implemented Interfaces:
public final class ChatCompletionMessageFunctionToolCallA call to a function tool created by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionMessageFunctionToolCall.BuilderA builder for ChatCompletionMessageFunctionToolCall.
public final classChatCompletionMessageFunctionToolCall.FunctionThe function that the model called.
-
Method Summary
Modifier and Type Method Description final Stringid()The ID of the tool call. final ChatCompletionMessageFunctionToolCall.Functionfunction()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<ChatCompletionMessageFunctionToolCall.Function>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final ChatCompletionMessageFunctionToolCall.BuildertoBuilder()final ChatCompletionMessageFunctionToolCallvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionMessageFunctionToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionMessageFunctionToolCall. -
-
Method Detail
-
function
final ChatCompletionMessageFunctionToolCall.Function function()
The function that the model called.
-
_type
final JsonValue _type()
The type of the tool. Currently, only
functionis 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<ChatCompletionMessageFunctionToolCall.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()
-
toBuilder
final ChatCompletionMessageFunctionToolCall.Builder toBuilder()
-
validate
final ChatCompletionMessageFunctionToolCall validate()
-
builder
final static ChatCompletionMessageFunctionToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionMessageFunctionToolCall.
The following fields are required:
.id() .function()
-
-
-
-