Prompting and context
How the prompt the model sees is built, and how to assemble an agent's context: message roles, the system prompt, examples, a stable prefix for the cache, compressing a long history. Separately — model behavior from the user's point of view: tokens, temperature, hallucinations, reasoning models.