# Factories (/examples/agent-os/factories/overview)



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

| Example                                                                     | Description                                              |
| --------------------------------------------------------------------------- | -------------------------------------------------------- |
| [Basic factory](/examples/agent-os/factories/basic)                         | Construct an agent for each request.                     |
| [Validated input](/examples/agent-os/factories/with-input-schema)           | Validate factory\_input against a Pydantic schema.       |
| [JWT and RBAC](/examples/agent-os/factories/with-jwt-rbac)                  | Choose capabilities from verified identity and scopes.   |
| [Tiered models](/examples/agent-os/factories/tiered-model)                  | Select a model through factory configuration.            |
| [Team factory](/examples/agent-os/factories/team-factory)                   | Construct a team for the request.                        |
| [Workflow factory](/examples/agent-os/factories/workflow-factory)           | Construct a workflow for the request.                    |
| [Async factory](/examples/agent-os/factories/async-factory)                 | Await asynchronous component construction.               |
| [Custom research schema](/examples/agent-os/factories/input-schema-factory) | Build the standalone PostgreSQL-backed research example. |
