AiMessageRole
ReferencesRole of a single message in an AI conversation. Mirrors the standard system/user/assistant/tool roles used by all major LLM provider APIs.
Enum values
| Name | Value | Description |
|---|---|---|
| System | 0 | The fixed instructions for the model (pre-prompt). |
| User | 1 | A message authored by the human user. |
| Assistant | 2 | A message authored by the model. Carries either text or a tool call. |
| Tool | 3 | The result of executing a tool the model invoked. |