Class ToolCallFunction
java.lang.Object
co.elastic.clients.elasticsearch.inference.ToolCallFunction
- All Implemented Interfaces:
JsonpSerializable
The function that the model called.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ToolCallFunction>Json deserializer forToolCallFunction -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The arguments to call the function with in JSON format.final Stringname()Required - The name of the function to call.static ToolCallFunctionvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forToolCallFunction
-
-
Method Details
-
of
public static ToolCallFunction of(Function<ToolCallFunction.Builder, ObjectBuilder<ToolCallFunction>> fn) -
arguments
Required - The arguments to call the function with in JSON format.API name:
arguments -
name
Required - The name of the function to call.API name:
name -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupToolCallFunctionDeserializer
protected static void setupToolCallFunctionDeserializer(ObjectDeserializer<ToolCallFunction.Builder> op)
-