Class ToolCall
java.lang.Object
co.elastic.clients.elasticsearch.inference.ToolCall
- All Implemented Interfaces:
JsonpSerializable
A tool call generated by the model.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ToolCall>
Json deserializer forToolCall
-
Method Summary
Modifier and TypeMethodDescriptionfinal ToolCallFunction
function()
Required - The function that the model called.final String
id()
Required - The identifier of the tool call.static ToolCall
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
final String
type()
Required - The type of the tool call.
-
Field Details
-
_DESERIALIZER
Json deserializer forToolCall
-
-
Method Details
-
of
-
id
Required - The identifier of the tool call.API name:
id
-
function
Required - The function that the model called.API name:
function
-
type
Required - The type of the tool call.API name:
type
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupToolCallDeserializer
-