Class CompletionToolChoice
java.lang.Object
co.elastic.clients.elasticsearch.inference.CompletionToolChoice
- All Implemented Interfaces:
JsonpSerializable
Controls which tool is called by the model.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CompletionToolChoice>Json deserializer forCompletionToolChoice -
Method Summary
Modifier and TypeMethodDescriptionfunction()Required - The tool choice function.static CompletionToolChoicevoidserialize(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.
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionToolChoice
-
-
Method Details
-
of
public static CompletionToolChoice of(Function<CompletionToolChoice.Builder, ObjectBuilder<CompletionToolChoice>> fn) -
type
Required - The type of the tool.API name:
type -
function
Required - The tool choice function.API name:
function -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCompletionToolChoiceDeserializer
protected static void setupCompletionToolChoiceDeserializer(ObjectDeserializer<CompletionToolChoice.Builder> op)
-