Package: @hexos/common

Discriminator for message authorship in a conversation.

Used by AgentMessage to identify who produced a message: user for human input, assistant for LLM responses, system for system prompts, and tool for tool execution results.

type MessageRole = 'user' | 'assistant' | 'system' | 'tool'