Class CompletionTool
java.lang.Object
co.elastic.clients.elasticsearch.inference.CompletionTool
- All Implemented Interfaces:
JsonpSerializable
A list of tools that the model can call.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CompletionTool>
Json deserializer forCompletionTool
-
Method Summary
Modifier and TypeMethodDescriptionfinal CompletionToolFunction
function()
Required - The function definition.static CompletionTool
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 tool.
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionTool
-
-
Method Details
-
of
-
type
Required - The type of tool.API name:
type
-
function
Required - The function definition.API name:
function
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCompletionToolDeserializer
protected static void setupCompletionToolDeserializer(ObjectDeserializer<CompletionTool.Builder> op)
-