Skip to main content
StudioTools can persist components directly through a synchronous database. This standalone Agent walks the full 3.0 ladder: create (a draft), validate, preview the draft with run_agent(version=1), publish, edit (a new draft version), and publish again. A second section calls the same tools directly from Python to compose a workflow with a compound loop step and shows the StudioResult envelope every tool returns.
standalone_studio_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as standalone_studio_agent.py, then run:
Full source: cookbook/05_agent_os/22_studio/standalone_studio_agent.py