Skip to content

Commit

Permalink
use poetry for bee-hive subproject (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei authored Jan 10, 2025
1 parent f850095 commit 3d7d4d8
Show file tree
Hide file tree
Showing 10 changed files with 524 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bee-hive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ python run_workflow workflow.yaml

* Run a local instance of the [Bee Stack](https://github.com/i-am-bee/bee-stack)

* Install dependencies: `pip install -r requirements.txt`
* Install dependencies: `poetry shell && poetry install`

* Configure environmental variables: `cp example.env .env`
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
502 changes: 502 additions & 0 deletions bee-hive/poetry.lock

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions bee-hive/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "bee_hive"
version = "0.1.0"
description = "A multi-agent platform with the vision to facilitate deploy and run Bee agents."
authors = ["IBM"]
license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = ">= 3.11, < 3.13"
pyyaml = "^6.0.2"
openai = "^1.56.2"
python-dotenv = "^1.0.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 0 additions & 3 deletions bee-hive/requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions examples/bee-hive/weather-checker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A multi-agent workflow using Bee-Hive to check if the current temperature in a l

* Run a local instance of the Bee Stack

* Install dependencies: `pip install -r ../../../bee-hive/requirements.txt`
* Install dependencies: `cd ../../../bee-hive/bee_hive && poetry shell && poetry install && cd -`

* Configure environmental variables: `cp example.env .env`

* Copy `.env` to main bee-hive directory: `cp .env ../../../bee-hive`
* Copy `.env` to main bee-hive directory: `cp .env ../../../bee-hive/bee_hive`

* Create the agents: `./hive create agents.yaml`

Expand Down
4 changes: 2 additions & 2 deletions examples/bee-hive/weather-checker/hive
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
do=${1:-"none"}
case "$do" in
run) DEFER_PYDANTIC_BUILD=false ../../../bee-hive/run_workflow.py "$2" ;;
create) ../../../bee-hive/create_agents.py "$2";;
run) DEFER_PYDANTIC_BUILD=false ../../../bee-hive/bee_hive/run_workflow.py "$2" ;;
create) ../../../bee-hive/bee_hive/create_agents.py "$2";;
none) echo "invalid option" ;;
esac

0 comments on commit 3d7d4d8

Please sign in to comment.