Factories

Build agents, teams, and workflows from validated request context.

Factories construct a component for a request. Client input customizes the component; authorization decisions must use trusted middleware claims.

ExampleDescription
Basic factoryConstruct an agent for each request.
Validated inputValidate factory_input against a Pydantic schema.
JWT and RBACChoose capabilities from verified identity and scopes.
Tiered modelsSelect a model through factory configuration.
Team factoryConstruct a team for the request.
Workflow factoryConstruct a workflow for the request.
Async factoryAwait asynchronous component construction.
Custom research schemaBuild the standalone PostgreSQL-backed research example.