https://github.com/i-am-bee/beeai-framework-starter
Template to quickly start working with Bee Agent Framework.
https://github.com/i-am-bee/beeai-framework-starter
agents ai bee-agent-framework
Last synced: about 1 year ago
JSON representation
Template to quickly start working with Bee Agent Framework.
- Host: GitHub
- URL: https://github.com/i-am-bee/beeai-framework-starter
- Owner: i-am-bee
- Created: 2024-09-18T13:18:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T20:04:32.000Z (about 1 year ago)
- Last Synced: 2025-03-19T21:27:01.089Z (about 1 year ago)
- Topics: agents, ai, bee-agent-framework
- Language: TypeScript
- Homepage:
- Size: 387 KB
- Stars: 100
- Watchers: 10
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π BeeAI Framework Starter
This starter template lets you quickly start working with the [BeeAI Framework](https://github.com/i-am-bee/beeai-framework) in a second.
π See the [documentation](https://i-am-bee.github.io/beeai-framework/) to learn more.
## β¨ Key Features
- π Safely execute an arbitrary Python Code via [Bee Code Interpreter](https://github.com/i-am-bee/bee-code-interpreter).
- π Get complete visibility into agents' decisions using our MLFlow integration thanks to [Bee Observe](https://github.com/i-am-bee/bee-observe).
- π Fully fledged TypeScript project setup with linting and formatting.
## π¦ Requirements
- JavaScript runtime [NodeJS > 18](https://nodejs.org/) (ideally installed via [nvm](https://github.com/nvm-sh/nvm)).
- Container system like [Rancher Desktop](https://rancherdesktop.io/), [Podman](https://podman.io/) (VM must be rootfull machine) or [Docker](https://www.docker.com/).
- LLM Provider either external [WatsonX](https://www.ibm.com/watsonx) (OpenAI, Groq, ...) or local [ollama](https://ollama.com).
## π οΈ Getting started
1. Clone this repository or [use it as a template](https://github.com/new?template_name=beeai-framework-starter&template_owner=i-am-bee).
2. Install dependencies `npm ci`.
3. Configure your project by filling in missing values in the `.env` file (default LLM provider is locally hosted `Ollama`).
4. Run the agent `npm run start src/agent.ts`
To run an agent with a custom prompt, simply do this `npm run start src/agent.ts <<< 'Hello Bee!'`
π§ͺ More examples can be found [here](https://github.com/i-am-bee/beeai-framework/blob/main/examples).
> [!TIP]
>
> To use Bee agent with [Python Code Interpreter](https://github.com/i-am-bee/bee-code-interpreter) refer to the [Code Interpreter](#code-interpreter) section.
> [!TIP]
>
> To use Bee agent with [Bee Observe](https://github.com/i-am-bee/bee-observe) refer to the [Observability](#observability) section.
## π Infrastructure
> [!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, also ensure you have enabled Docker compatibility mode).
## πCode interpreter
The [Bee Code Interpreter](https://github.com/i-am-bee/bee-code-interpreter) is a gRPC service that an agent uses to execute an arbitrary Python code safely.
### Instructions
1. Start all services related to the [`Code Interpreter`](https://github.com/i-am-bee/bee-code-interpreter) `npm run infra:start --profile=code_interpreter`
2. Run the agent `npm run start src/agent_code_interpreter.ts`
> [!NOTE]
>
> Code Interpreter runs on `http://127.0.0.1:50081`.
## π Observability
Get complete visibility of the agent's inner workings via our observability stack.
- The [MLFlow](https://mlflow.org/) is used as UI for observability.
- The [Bee Observe](https://github.com/i-am-bee/bee-observe) is the observability service (API) for gathering traces from [Bee Agent Framework](https://github.com/i-am-bee/beeai-framework).
### Instructions
1. Start all services related to [Bee Observe](https://github.com/i-am-bee/bee-observe) `npm run infra:start --profile=observe`
2. Run the agent `npm run start src/agent_observe.ts`
3. See visualized trace in MLFlow web application [`http://127.0.0.1:8080/#/experiments/0`](http://localhost:8080/#/experiments/0)
> [!TIP]
>
> Configuration file is [infra/observe/.env.docker](./infra/observe/.env.docker).