Skip to content

Commit

Permalink
feat(code-interpreter): remove functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com>
  • Loading branch information
Tomas2D committed Oct 14, 2024
1 parent b866298 commit 18302f9
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BEE_FRAMEWORK_LOG_SINGLE_LINE="false"
# GROQ_API_KEY=

# Tools
CODE_INTERPRETER_URL=http://127.0.0.1:50051
# CODE_INTERPRETER_URL=http://127.0.0.1:50051

# For Google Search Tool
# GOOGLE_API_KEY=your-google-api-key
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ scripts/ibm_vllm_generate_protos/dist
scripts/ibm_vllm_generate_protos/dts
scripts/ibm_vllm_generate_protos/types

infra/bee-code-interpreter/*
!infra/bee-code-interpreter/bee-code-interpreter.yaml

### Node template
# Logs
logs
Expand Down Expand Up @@ -140,7 +137,3 @@ dist
.idea
/experiments
.npmrc

# Code interpreter data
/examples/tmp/code_interpreter/*
/examples/tmp/local/*
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,18 @@ To run this example, be sure that you have installed [ollama](https://ollama.com

➡️ All examples can be found in the [examples](./examples) directory.

➡️ To run an arbitrary example, use the following command `yarn start -- examples/agents/bee.ts` (just pass the appropriate path to the desired example).
➡️ To run an arbitrary example, use the following command `yarn start examples/agents/bee.ts` (just pass the appropriate path to the desired example).

### Local Installation (Python Interpreter + Interactive CLI)
### Local Installation

> [!NOTE]
>
> `yarn` should be installed via Corepack ([tutorial](https://yarnpkg.com/corepack))
> [!NOTE]
>
> To make any asset available to a local code interpreter place them the following directory: `./examples/tmp/local`
> [!NOTE]
>
> Docker distribution with support for compose is required, the following are supported:
>
> - [Docker](https://www.docker.com/)
> - [Rancher](https://www.rancher.com/) - macOS users may want to use VZ instead of QEMU
> - [Podman](https://podman.io/) - requires [compose](https://podman-desktop.io/docs/compose/setting-up-compose) and **rootful machine** (if your current machine is rootless, please create a new one)
1. Clone the repository `git clone git@github.com:i-am-bee/bee-agent-framework`.
2. Install dependencies `yarn install`.
3. Create `.env` (from `.env.template`) and fill in missing values (if any).
4. Start the code interpreter `yarn run infra:start-code-interpreter`.
5. Start the agent `yarn run start:bee` (it runs ./examples/agents/bee.ts file).
4. Start the agent `yarn run start:bee` (it runs `./examples/agents/bee.ts` file).

### 📦 Modules

Expand Down
28 changes: 0 additions & 28 deletions docker-compose.yml

This file was deleted.

Empty file.
Empty file removed examples/tmp/local/.gitkeep
Empty file.
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
"ts:check": "tsc --noEmit && tsc -p tsconfig.examples.json --noEmit",
"start": "tsx --tsconfig tsconfig.examples.json",
"start:bee": "yarn start -- examples/agents/bee.ts",
"infra:start-all": "yarn _docker compose up --detach --wait",
"infra:start-code-interpreter": "yarn _docker compose up bee-code-interpreter-k3s --detach --wait",
"infra:stop-all": "yarn _docker compose down",
"infra:clean-all": "yarn _docker compose down --volumes",
"docs:build": "embedme --source-root=. docs/**/*.md",
"docs:check": "yarn docs:build --verify",
"lint": "yarn eslint",
Expand All @@ -81,8 +77,7 @@
"copyright": "./scripts/copyright.sh",
"release": "release-it",
"ibm-vllm:generate-types": "./scripts/ibm_vllm_generate_protos/ibm_vllm_generate_protos.sh",
"_ensure_env": "cp -n .env.template .env || true",
"_docker": "yarn _ensure_env && bash -c 'source ./.env && docker_cmd=$(which docker >/dev/null 2>&1 && printf docker || printf podman) && $docker_cmd \"$@\"' sh"
"_ensure_env": "cp -n .env.template .env || true"
},
"dependencies": {
"@ai-zen/node-fetch-event-source": "^2.1.4",
Expand Down

0 comments on commit 18302f9

Please sign in to comment.