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.

ExampleDescription
Portkey BasicRoute a basic agent through the Portkey AI gateway with sync, streaming, and async runs.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Portkey Structured OutputRequest a MovieScript schema through Portkey and validate the response with Pydantic.
Portkey Tool UseCall web search tools from an agent routed through the Portkey gateway.