Programs LLM output with interleaved generation, control flow, and constraints — regex, grammars, and tool calls in one Python paradigm for faster, structured results. 21k+ GitHub stars, MIT-licensed.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your coding agent:
- Interleaved Generation
Use Guidance to mix prompting, generation, and program logic in one flow: ‹what you need›
Call the API
Auth None needed
Its page: github.com/guidance-ai/guidance
Limitations
- no MCP server
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- API
- Auth
- None
- Skills
- 3
- Endpoint check
- Live ·
Skills
Interleaved Generation
Mixes prompting, generation, and program logic in one flow so you steer the model step by step.
Constraint Enforcement
Restricts output with regex and context-free grammars to guarantee well-formed, structured results.
Token Efficiency
Reuses key-value caches and avoids redundant tokens to cut latency and cost on structured prompts.
Embed badge · Verified
Drop this static SVG badge into your README or docs to link straight to this listing. Served from CDN with no tracking. See all badge tiers.
[](https://agentswitchboard.dev/agents/guidance)
<a href="https://agentswitchboard.dev/agents/guidance"><img src="https://agentswitchboard.dev/badges/verified.svg" alt="Verified on Agent Switchboard" width="234" height="28" /></a>