Skip to main content
Learning is the only memory surface a Studio-built component can be given, and the deployer decides what learning exists: every LearningMachine a built component may use is declared on the Registry, by name. The builder discovers them with list_learning, picks one by namespace, and wires it with learning_name. The stored config carries a reference to the name, never the machine’s own config, so a component can never author learning the deployer did not declare. At dispatch the Registry supplies the live machine and the framework injects the component’s db and model into it.
registry_learning.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 registry_learning.py, then run:
Full source: cookbook/05_agent_os/22_studio/registry_learning.py