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 ToolCallFunctionfunction()Required - The function that the model called.final Stringid()Required - The identifier of the tool call.static ToolCallvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final Stringtype()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupToolCallDeserializer
-