Skip to content

Message

Source code in docs_src/capo_context/types/message.py
class Message(TypedDict, closed=True):
    role: "capo_context.types.message_role.MessageRole"
    """<p>The role of the participant that produced this turn. Valid values:</p> <ul> <li> <p> <code>USER</code> - The user asked or said this turn.</p> </li> <li> <p> <code>ASSISTANT</code> - The assistant answered in this turn.</p> </li> </ul>"""
    content: "capo_context.types.message_content.MessageContent"
    """<p>The turn's text content.</p>"""

content instance-attribute

content: MessageContent

The turn's text content.

role instance-attribute

The role of the participant that produced this turn. Valid values:

  • USER - The user asked or said this turn.

  • ASSISTANT - The assistant answered in this turn.