Skip to content

ChatMessage

Source code in docs_src/capo_assurance/types/chat_message.py
class ChatMessage(TypedDict, closed=True):
    author: "capo_assurance.types.chat_author.ChatAuthor"
    """<p>The principal that authored the message.</p>"""
    content: "capo_assurance.types.chat_message_content.ChatMessageContent"
    """<p>The message text content.</p>"""
    created_at: "datetime.datetime"
    """<p>The timestamp when the message was created.</p>"""
    sequence_number: "capo_assurance.types.chat_sequence_number.ChatSequenceNumber"
    """<p>The position of this message in the session's sequence.</p>"""

author instance-attribute

author: ChatAuthor

The principal that authored the message.

content instance-attribute

The message text content.

created_at instance-attribute

created_at: datetime

The timestamp when the message was created.

sequence_number instance-attribute

sequence_number: ChatSequenceNumber

The position of this message in the session's sequence.