Build an agent with BeeAI Framework¶
Prerequisites¶
This lab is a Jupyter notebook. Please follow the instructions in prework for the prerequisites to run the lab.
Lab¶
Launch Jupyter Lab by running the following commands from the opentech directory of your beeai-workshop cloned repo.
-
Create
beekernelwhich will have the dependencies preinstalled in your virtual environment.uv run --directory beeaiframework ipython kernel install --user --env VIRTUAL_ENV .venv --name=beekernel -
Use
uvto run Jupyter Lab. The directory and allow_hidden gives us access to.venvmodules.uv run --directory beeaiframework jupyter lab --ContentsManager.allow_hidden=True -
In Jupyter Lab in your browser, walk through the notebook:
- Jupyter Lab will open in your browser
- Navigate to the
notebooksfolder - Open
beeai.ipynb - Use the play button to walk through the notebook
- Be sure to read the text, the code, and the output
- Close your browser tab when done
-
Exit the Jupyter Lab server by typing CTRL-C, CTRL-C (twice) in the terminal window where you started Jupyter Lab.