← All types
En Enum

ChatMessageRole

The role of a message sender

Values

USER

Message from the user

ASSISTANT

Message from the AI assistant

SYSTEM

System message (instructions)

TOOL

Tool results returned to the model (hidden from the conversation)

Referenced by (1)
Exact type SDL
"""The role of a message sender"""
enum ChatMessageRole {
  """Message from the user"""
  USER
  """Message from the AI assistant"""
  ASSISTANT
  """System message (instructions)"""
  SYSTEM
  """Tool results returned to the model (hidden from the conversation)"""
  TOOL
}