This example resembles the example found originally here.
You‘ll see that in application.py we have some lightweight tracing set up for Hamilton. This is a simple way to plug into Burr’s tracer functionality -- this will allow you to see more in the Burr UI.
More functionality is on the roadmap!
Install the dependencies:
pip install "burr[start]" -r requirements.txt
Make sure you have the API Keys in your environment:
export OPENAI_API_KEY=YOUR_KEY export TAVILY_API_KEY=YOUR_KEY
Run the notebook: or do it manually:
jupyter notebook
and open the notebook notebook.ipynb.
python application.py
Application run:
There are a few things:
query that you provide for the agents to work over. Set this as the initial human message in state.prompts used by the agents in the code.