Class EmbeddingContentObjectContents
java.lang.Object
co.elastic.clients.elasticsearch.inference.EmbeddingContentObjectContents
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class EmbeddingContentObjectContents
extends Object
implements JsonpSerializable
An object containing the input data for the model to embed.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<EmbeddingContentObjectContents>Json deserializer forEmbeddingContentObjectContents -
Method Summary
Modifier and TypeMethodDescriptionfinal EmbeddingContentFormatformat()The format of the input.of(Function<EmbeddingContentObjectContents.Builder, ObjectBuilder<EmbeddingContentObjectContents>> fn) rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupEmbeddingContentObjectContentsDeserializer(ObjectDeserializer<EmbeddingContentObjectContents.Builder> op) toString()final EmbeddingContentTypetype()Required - The type of input to embed.final Stringvalue()Required - The value of the input to embed.
-
Field Details
-
_DESERIALIZER
Json deserializer forEmbeddingContentObjectContents
-
-
Method Details
-
of
-
type
Required - The type of input to embed.API name:
type -
format
The format of the input. For thetexttype this must betext. For theimagetype, this must bebase64. If not specified, this will default totextfor thetexttype andbase64for theimagetype.API name:
format -
value
Required - The value of the input to embed. For images, this must be a base64-encoded data URI, i.e. "data:content/type;base64,..."API name:
value -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
EmbeddingContentObjectContents.Builderinitialized with field values of this instance
-
setupEmbeddingContentObjectContentsDeserializer
protected static void setupEmbeddingContentObjectContentsDeserializer(ObjectDeserializer<EmbeddingContentObjectContents.Builder> op)
-