-
public final class MessageA single entry in the conversation transcript, reconciled by the SDK and exposed via io.elevenlabs.ConversationSession.messages.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()final MessageRolegetRole()final StringgetContent()final LonggetTimestamp()final IntegergetEventId()final BooleangetIsPartial()-
-
Constructor Detail
-
Message
Message(String id, MessageRole role, String content, Long timestamp, Integer eventId, Boolean isPartial)
- Parameters:
id- Stable identifier, preserved across in-place updates so list diffing (e.g.role- Who produced the message (user or agent).content- The text content; grows as a partial message streams in.timestamp- Creation time in epoch milliseconds, preserved across updates.eventId- Server event id correlating updates for the same message;nullfor locally appended messages.isPartial-truewhile still being assembled (streaming agent response or in-progress user transcript);falseonce finalized.
-
-
Method Detail
-
getRole
final MessageRole getRole()
-
getContent
final String getContent()
-
getTimestamp
final Long getTimestamp()
-
getEventId
final Integer getEventId()
-
getIsPartial
final Boolean getIsPartial()
-
-
-
-