Skip to content

MessageRole

MessageRole = "user" | "assistant" | "tool" | "system"

Defined in: react/components/agent/roles.ts:8

Who a transcript message is from. Drives the default accent-bar colour, side, and weight — every default is overridable, so apps can add their own roles by passing an explicit MessageAccent.