Skip to main content
A callable that receives a RequestContext and returns a fresh Agent with tenant-specific instructions. The factory runs on every run-scoped request (POST /runs, POST /continue), alongside a normal prototype agent in the same AgentOS.

Run the Example