Skip to main content
AgentOS automatically discovers the components (models, tools, databases, and vector databases) used anywhere inside its agents, teams, and workflows and adds them to the registry. You do not need to declare these components a second time when constructing the Registry.
auto_populate_registry.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as auto_populate_registry.py, then run:
Full source: cookbook/93_components/auto_populate_registry.py