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 CompletionToolFunctionfunction()Required - The function definition.static CompletionToolvoidserialize(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 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCompletionToolDeserializer
protected static void setupCompletionToolDeserializer(ObjectDeserializer<CompletionTool.Builder> op)
-