Enum

role

Role in a conversation

Identifies whether a message is from the user or assistant.

Spec: https://spec.modelcontextprotocol.io/specification/2025-06-18/schema#role

enum role {
  user,
  assistant,
}

Cases

CaseDescription
user
assistant