Interact with your agents in the BeeAI Platform¶
In this lab, we'll run our agent in the BeeAI platform. The BeeAI platform creates a simple and elegant UI so that we can test, run, and share our agents easily.
Steps¶
1. Install BeeAI Platform¶
Install BeeAI platform using the installation instructions in the documentation.
To install a specific version of BeeAI Platform, set the BEEAI_VERSION environment variable before running the install script. For example:
sh -c "$(BEEAI_VERSION=0.3.5 curl -LsSf https://raw.githubusercontent.com/i-am-bee/beeai-platform/HEAD/install.sh)"
Already installed BeeAI in the past? Be sure to update it to the latest version according to the instructions in the documentation.
2. Start the BeeAI Platform (optionally with Phoenix enabled)¶
BeeAI includes OpenTelemetry instrumentation to collect traces and metrics. Telemetry data helps with performance monitoring, error tracking, usage analytics, and debugging agent interactions.
Important License Notice: Phoenix is disabled by default in BeeAI. When you enable Phoenix, be aware that Arize Phoenix is licensed under the Elastic License v2 (ELv2), which has specific terms regarding commercial use and distribution. By enabling Phoenix, you acknowledge that you are responsible for ensuring compliance with the ELv2 license terms for your specific use case. Please review the Phoenix license before enabling this feature in production environments.
To start the BeeAI Platform with Arize Phoenix, run:
beeai platform start --set phoenix.enabled=true
3. Launch the BeeAI UI¶
In your terminal, run:
beeai ui
You should be prompted to select a model provider and model. For running locally, Ollama and granite4:tiny-h are recommended.
You should see the UI launch in your browser.
Insight
If you navigate to the menu bar on the left hand side you will see a list of agents. These example agents come with BeeAI Platform. We'll add our custom agent in steps that follow.
4. Open the project directory¶
If you don't already have the intro_beeai_platform folder open in VS Code, navigate there. Your working directory should look something like this: ~/beeai-workshop/intro_beeai_platform.
5. Install dependencies¶
Open your terminal (either in VS Code or using your preferred terminal) and install the dependencies:
uv sync
6. Review your .env file¶
Review your .env file to ensure you copied the env.template and have the settings you need.
7. Serve the agent¶
In your terminal, run the agent:
uv run src/agent.py
Insight
If you take a look at the code pay special attention to the metadata in the @server.agent decorator. The metadata is used by the BeeAI Platform UI.
8. Run the agent¶
-
Navigate to the menu bar on the left hand side of the BeeAI UI and select the Conference Prep Agent. You might need to refresh the page.
-
Notice that we build a form UI.
Taskis the main input to the agent.Company nameis especially useful if your task doesn't mention the company nameStylesuggests the type of output you want.detailedis typically longer and may include source citations.listis a good option if you like bullet points.- The
Eventname andEvent dateare used here primarily for UI demo purposes.
-
Experiment with the different form fields. Try using one of the following tasks:
-
Brief me for a Shopify meeting at the conference. Give me an overview of the company, some recent news about them, and anything important I need to know from our internal notes.
-
I'm planning on meeting the Moderna rep at the next conference. Remind me where we left off on previous discussions.
-
Build a security talking sheet for Siemens Energy. How does their strategy compare to their competitors'?
-
-
Try different inputs.
-
Explore:
- the trajectory steps (look in "How did I get this answer?")
- the captured details in Arize Phoenix
- browse to
http://localhost:6006/ - open project "default"
- Select "All" (not Root Spans)
- Most details show up after the run
- Look under "All" and not "Root"
- browse to
- source citations (not always present)
9. Clean Up¶
- Stop the 3 agent servers using
Ctrl + Cor exiting the terminal where it is running. -
Clean up the platform by running this command in your terminal:
beeai platform delete