In the chat completions API format used by OpenAI, Anthropic, Google, and others, messages come in three roles: system, user, and assistant. The system message is the system prompt, it's processed first, with higher conceptual priority than user turns, and persists across the entire conversation.
What Goes in a System Prompt
- Persona, "You are a senior Go developer with expertise in…