Class Message
java.lang.Object
co.elastic.clients.elasticsearch.inference.Message
- All Implemented Interfaces:
JsonpSerializable
An object representing part of the conversation.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Message>
Json deserializer forMessage
-
Method Summary
Modifier and TypeMethodDescriptionfinal MessageContent
content()
The content of the message.static Message
final String
role()
Required - The role of the message author.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
final String
The tool call that this message is responding to.The tool calls generated by the model.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forMessage
-
-
Method Details
-
of
-
content
The content of the message.API name:
content
-
role
Required - The role of the message author.API name:
role
-
toolCallId
The tool call that this message is responding to.API name:
tool_call_id
-
toolCalls
The tool calls generated by the model.API name:
tool_calls
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupMessageDeserializer
-