Portkey
Index of Agno examples routing agents through the Portkey AI gateway: basic runs, retries, structured output, and tool use.
Use your own enabled model slug and pass the Portkey API key explicitly. Each example includes the required account setup.
| Example | Description |
|---|---|
| Portkey Basic | Route a basic agent through the Portkey AI gateway with sync, streaming, and async runs. |
| Retry | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| Portkey Structured Output | Request a MovieScript schema through Portkey and validate the response with Pydantic. |
| Portkey Tool Use | Call web search tools from an agent routed through the Portkey gateway. |