Prompt Engineering

System prompts, structured outputs, and optimization methods for agent prompts.

Agent prompts are not a single block of text. They are a layered interface: system messages, tool definitions, constraints, formats, and context assembly rules.

This section focuses on prompt techniques that matter specifically for agents: persistent system contracts, schema-constrained outputs, and programmatic prompt optimization.