Package 

Class Message


  • 
    public final class Message
    
                        

    A single entry in the conversation transcript, reconciled by the SDK and exposed via io.elevenlabs.ConversationSession.messages.

    • 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; null for locally appended messages.
        isPartial - true while still being assembled (streaming agent response or in-progress user transcript); false once finalized.