Skip to content

MessageRole

Who wrote a message. Open: new values may be added.

A string. The SDKs keep a value they do not know yet as the string itself (Python: an unknown member carrying it), so a newer server never breaks an older SDK.

Value Description
user The person or client that sent it.
assistant The agent.

Used by ResumeConversationStream, SendMessage.