Class EmbeddingContentObject
java.lang.Object
co.elastic.clients.elasticsearch.inference.EmbeddingContentObject
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class EmbeddingContentObject
extends Object
implements JsonpSerializable
A wrapper object which contains the fields required to specify multimodal
inputs
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<EmbeddingContentObject>Json deserializer forEmbeddingContentObject -
Method Summary
Modifier and TypeMethodDescriptioncontent()Required - An object containing the input data for the model to embedstatic EmbeddingContentObjectrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forEmbeddingContentObject
-
-
Method Details
-
of
public static EmbeddingContentObject of(Function<EmbeddingContentObject.Builder, ObjectBuilder<EmbeddingContentObject>> fn) -
content
Required - An object containing the input data for the model to embedAPI name:
content -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
EmbeddingContentObject.Builderinitialized with field values of this instance
-
setupEmbeddingContentObjectDeserializer
protected static void setupEmbeddingContentObjectDeserializer(ObjectDeserializer<EmbeddingContentObject.Builder> op)
-