What’s Isolated
| Resource | Isolation Level |
|---|---|
| Database | Separate schema or database per tenant |
| Tool registry | Per-tenant tool assignments and state |
| LLM config | Per-tenant model, temperature, token limits |
| Knowledge bases | Tenant-scoped documents and embeddings |
| Conversations | Tenant-scoped history |
How It Works
Tenant context is extracted from the authenticated request (via Auth0 JWT) and propagated through the execution context:tenant_id.
Tenant Provisioning
When a new tenant is first seen, AgentFlow automatically:- Creates the tenant’s database schema
- Runs migrations
- Syncs the global tool registry to the tenant’s tool state
- Initializes default agent configurations
Per-Tenant LLM Configuration
Each tenant can override default LLM settings:llm_config.