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 CompletionToolChoice
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 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCompletionToolChoiceDeserializer
protected static void setupCompletionToolChoiceDeserializer(ObjectDeserializer<CompletionToolChoice.Builder> op)
-