- Glossary
- Role
Glossary term
Role
Who a message is from in the conversation: user or assistant.
Also called roles.
Open lesson 11.5
Message roles: system, developer and user · Chapter 11, and 4 more lessons below
In plain words
Messages must alternate correctly; the system prompt is a separate top-level field, not a role.
Taught in
- 11.5Message roles: system, developer and userChapter 11, Explicit criteria, roles and XML tags · main lesson
- 5.4Constitutional AI and principle-based safetyChapter 5, How models are trained
- 11.3Roles and audienceChapter 11, Explicit criteria, roles and XML tags
- 35.2Hosts, clients and serversChapter 35, MCP explained
- 51.4Multi-agent frameworks and conversation-style orchestrationChapter 51, Agent frameworks compared
Also in these lessons
Constitutional AIExplicit criteriaGuardrailMax turnsMCP resourceSupervisor