I used to dislike YAML (the reserved-word gotchas are real) but it’s an attractive choice for prompt engineering — more token-efficient than JSON, supports escape-free quoting (3.5 can forget escapes), and stream-parseable:
YAML’s Advantages for Prompt Engineering: Token Efficiency and Parsing
By
–