← API reference
CANONICAL TYPE REFERENCE

ChatMessageRole

The role of a message sender

USER

Message from the user

ASSISTANT

Message from the AI assistant

SYSTEM

System message (instructions)

View exact SDL
"""The role of a message sender"""
enum ChatMessageRole {
  """Message from the user"""
  USER
  """Message from the AI assistant"""
  ASSISTANT
  """System message (instructions)"""
  SYSTEM
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.