Examples

A gallery of runnable AgentRoute agents, from a one-file hello world to multi-agent orchestration, each built on the real SDK.


These examples go from a single-file hello world to a multi-agent workflow, and every one is built on the real agentroute SDK — the code on each page runs as written against Agent, @agent.tool, structured output=, Memory, History, and plain Python for concurrency. Each page explains what the agent does, shows the full source in one block, gives you a short snippet to run it, and links the concepts and reference pages it draws on. New to the SDK? Start with minimal, then work down the grid as you need tools, structured output, memory, and orchestration.

All examples are runnable

Every page rewrites its domain on the current SDK — no aspirational APIs. Set AGENTROUTE_API_KEY (one OpenRouter key works for every model string), install the SDK, and the code runs as printed. See getting started for setup, the SDK reference for exact signatures, and the concepts for the bigger picture.