> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Per-tenant Agent Factory

> Migrate the legacy tenant-agent factory route to the current Agno v3 factory example.

The v2 cookbook source for this route was replaced in Agno v3.

Use [Build an Agent per Request](https://agno-v2.mintlify.site/examples/agent-os/factories/basic.md) for the current `AgentFactory` pattern. The factory owns the public agent ID and database while creating a fresh tenant-aware agent for each run.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.