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 String
Required - The arguments to call the function with in JSON format.final String
name()
Required - The name of the function to call.static ToolCallFunction
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()
-
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupToolCallFunctionDeserializer
protected static void setupToolCallFunctionDeserializer(ObjectDeserializer<ToolCallFunction.Builder> op)
-