Skip to main content
The runner’s tools are plain methods, so a platform can call them without a wielding model. This example builds two published components, lists them, runs one by id, and shows the registry guard: a runner constructed without the registry refuses to run a component whose stored config references registry-backed resources, because the rebuild would silently drop them. Dispatch resolves only published versions; creates pass publish=True here (the draft-inert behavior is demonstrated in registry_and_components.py).
studio_runner_direct.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 studio_runner_direct.py, then run:
Full source: cookbook/05_agent_os/22_studio/studio_runner_direct.py