You need output in a very specific, unusual format.
Your long prose description of the format keeps being approximated, not matched.
- ADescribe the format in even more detail
- BShow two or three concrete input→output examples in the exact format
- CLower the temperature to 0
- DRepeat the format instruction at the end of the prompt too
Answer: B
Show two or three concrete input→output examples in the exact format
Why
For an idiosyncratic format, a few worked examples convey the exact shape far more reliably than any prose description. Show, don’t just tell - few-shot pins down what instructions only approximate.
- PromptingYour app puts stable rules (persona, safety limits, output format) into the same user message as each request’s data.
- PromptingYour prompt says "answer in one short sentence" and, three paragraphs later, "explain your reasoning step by step in detail." Outputs are…
- Prompting«Never mention competitor prices» sits in your system prompt, and it keeps being violated.
- PromptingYour prompt is just “write code.” What improves it the most?
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path