Prompting

Prompting systems that stay on spec

Use system and developer messages to define mission, schema, and tool boundaries so outputs stay consistent.

Design prompt contracts that control tone, format, tool usage, and fallbacks across the Gateway API.

9 guides4 focus areasPrompt contracts
Starter kit
  • Pin role, audience, and mission in the system prompt.
  • Add an output schema and a single example.
  • Define tool rules and fallback behavior.
  • Validate outputs and retry with corrections.
Explore all guides
Focus areas

Prompt contracts

Declare output shape, ordering, and guardrails so responses are predictable.

Few-shot anchors

Pair one strong example with rules to align tone and format.

Tool gating

Tell the model when to call tools and when to respond directly.

Evaluation loops

Run prompt tests and compare outputs before shipping.

Guides in this topic

Prompting systems guides

Curated recipes, playbooks, and walkthroughs for this topic area.

Start here

Featured in Prompting systems

Related topics