You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOP.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,9 @@ With the githooks installed the following will run automatically on a commit:
35
35
*[mypy](https://github.com/python/mypy) is used to check for type errors
36
36
* a simple format check is applied to the commit message to verify for use of [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary)
37
37
38
-
Additional tools are integrated into poetry via the [poetry plugin](https://poethepoet.natn.io/poetry_plugin.html)
38
+
Additional tools are provided via [Poe the Poet](https://github.com/nat-n/poethepoet) tasks and can be run with uv.
39
39
40
-
Tools can also be run directly via the command line (run within `poetry shell`or prefix with `poetry run`):
40
+
Tools can be run directly via the command line (activate the venv or prefix commands with `uv run`):
Copy file name to clipboardExpand all lines: README.md
+22-34Lines changed: 22 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ This starter template helps you **quickly** get started with the [BeeAI framewor
24
24
## 📋 Requirements
25
25
26
26
-**Python Version 3.11+**
27
-
-**Poetry Version 2.0+**for Python package management - See [installation guide](https://python-poetry.org/docs/#installation)
27
+
-**uv**(fast Python package manager) - See installation: https://docs.astral.sh/uv/getting-started/installation/
28
28
-**Container system** (with Compose support):
29
29
-[Docker](https://www.docker.com/)
30
30
-[Rancher](https://www.rancher.com/) (For macOS, use VZ instead of QEMU)
31
31
-[Podman](https://podman.io/) (Requires [Compose](https://podman-desktop.io/docs/compose/setting-up-compose) and rootful machine)
32
32
-**LLM Provider** - External [WatsonX](https://www.ibm.com/watsonx) (OpenAI, Groq, ...) or local [Ollama](https://ollama.com)
33
-
-**IDE/Code Editor** (e.g., WebStorm, VSCode) - Optional but recommended for smooth smooth configuration handling
33
+
-**IDE/Code Editor** (e.g., WebStorm, VSCode) - Optional but recommended for smooth configuration handling
34
34
35
35
---
36
36
@@ -44,25 +44,19 @@ cd beeai-framework-py-starter
44
44
45
45
**Step 2:** Install dependencies
46
46
```sh
47
-
poetry install
47
+
uv sync
48
48
```
49
49
50
-
**Step 3:** Install and start the poetry environment
51
-
```sh
52
-
poetry self add poetry-plugin-shell
53
-
poetry shell
54
-
```
55
-
56
-
**Step 4:** Create an `.env` file with the contents from `.env.template`
50
+
**Step 3:** Create an `.env` file with the contents from `.env.template`
57
51
58
-
**Step 5:**[Ollama](https://ollama.com/) must be installed and running, with the granite3.3 model pulled.
52
+
**Step 4:**[Ollama](https://ollama.com/) must be installed and running, with the granite3.3 model pulled.
59
53
```sh
60
54
ollama pull granite3.3
61
55
```
62
56
63
-
**Step 6:** Start all services related to [beeai-code-interpreter](https://github.com/i-am-bee/beeai-code-interpreter)
57
+
**Step 5:** Start all services related to [beeai-code-interpreter](https://github.com/i-am-bee/beeai-code-interpreter)
64
58
```sh
65
-
poe infra --type start
59
+
uv run poe infra --type start
66
60
```
67
61
68
62
> [!NOTE]
@@ -76,21 +70,12 @@ Get complete visibility of the agent's inner workings via [OpenInference Instrum
76
70
77
71
### Instructions
78
72
79
-
1.(Optional) In order to see spans in [Phoenix](https://github.com/Arize-ai/phoenix), begin running a Phoenix server. This can be done in one command using docker.
73
+
1. In order to see spans in [Phoenix](https://github.com/Arize-ai/phoenix), begin running a Phoenix server. This can be done in one command using docker.
80
74
81
75
```
82
-
docker run -p 6006:6006 -i -t arizephoenix/phoenix
76
+
docker run -p 6006:6006 -i -t arizephoenix/phoenix:latest
83
77
```
84
78
85
-
or via the command line:
86
-
87
-
```
88
-
brew install i-am-bee/beeai/arize-phoenix
89
-
brew services start arize-phoenix
90
-
```
91
-
92
-
see https://docs.beeai.dev/observability/agents-traceability for more details.
93
-
94
79
2. Run the agent `python beeai_framework_starter/agent_observe.py`
95
80
3. You should see your spans exported in your console. If you've set up a locally running Phoenix server, head to [**localhost:6006**](http://localhost:6006/projects) to see your spans.
96
81
@@ -100,37 +85,38 @@ see https://docs.beeai.dev/observability/agents-traceability for more details.
100
85
101
86
### 🤖 Agent
102
87
103
-
Now that you’ve set up your project, let’s run the agent example located at `/beeai_framework_starter/agent_react.py`.
88
+
Now that you’ve set up your project, let’s run the agent example.
104
89
105
90
You have two options:
106
91
107
92
**Option 1:** Interactive mode
108
93
```sh
109
-
python beeai_framework_starter/agent.py
94
+
uv run python beeai_framework_starter/agent.py
110
95
```
111
96
112
97
**Option 2:** Define your prompt up front
113
98
```sh
114
-
python beeai_framework_starter/agent.py <<<"I am going out tomorrow morning to walk around Boston. What should I plan to wear?"
99
+
uv run python beeai_framework_starter/agent.py <<<"I am going out tomorrow morning to walk around Boston. What should I plan to wear?"
115
100
```
116
101
117
102
> [!NOTE]
118
-
> Notice this prompts triggers the agent to call a tool.
103
+
> Notice that this prompt triggers the agent to call a tool.
119
104
120
105
---
121
106
122
107
### 🧑💻 Code interpreter agent
123
108
124
109
Now let's run the code interpreter agent example located at `/beeai_framework_starter/agent_code_interpreter.py`.
125
110
126
-
Try the `Python Tool` and ask the agent to perform a complex calculation:
111
+
Try the `PythonTool` and ask the agent to perform a complex calculation:
0 commit comments