Burr supports running applications inside applications. Currently this is done through sharing links in tracking, but we will be adding more features to make this more ergonomic.
This example runs a simple applications. We:
The overall application looks like this:
The generate_all_poems then runs n (one for each poem type) instances of the sub-application:
To run this, you'll need an OpenAI key set. Then you can run:
export OPENAI_API_KEY=... python application.py
This will generate three poems about state machines, one for each type of poem, then combine at the end.
To change the poem type, edit application.py and change the poem_types list in the mainline.
Run the example with python application.py. Then, ensure burr is running, and navigate to the UI: http://localhost:7241/project/demo:parallelism_poem_generation.
FOr more information, read the documentation on recursive applications.