Class ContentObject
java.lang.Object
co.elastic.clients.elasticsearch.inference.ContentObject
- All Implemented Interfaces:
JsonpSerializable
An object style representation of a single portion of a conversation.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ContentObject>Json deserializer forContentObject -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentObjectvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringtext()Required - The text content.toString()final Stringtype()Required - The type of content.
-
Field Details
-
_DESERIALIZER
Json deserializer forContentObject
-
-
Method Details
-
of
-
text
Required - The text content.API name:
text -
type
Required - The type of content.API name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupContentObjectDeserializer
-