//bee-agentbyplayground

bee-agent

0
0
0
TypeScript

๐Ÿ Bee Agent Framework Starter

This starter template lets you quickly start working with the Bee Agent Framework in a second.

๐Ÿ“š See the documentation to learn more.

โœจ Key Features

  • ๐Ÿ”’ Safely execute an arbitrary Python Code via Bee Code Interpreter.
  • ๐Ÿ”Ž Get complete visibility into agentsโ€™ decisions using our MLFlow integration thanks to Bee Observe.
  • ๐Ÿš€ Fully fledged TypeScript project setup with linting and formatting.

๐Ÿ“ฆ Requirements

๐Ÿ› ๏ธ Getting started

  1. Clone this repository or use it as a template.
  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.

[!TIP]

To use Bee agent with Python Code Interpreter refer to the Code Interpreter section.

[!TIP]

To use Bee agent with Bee Observe refer to the Observability section.

๐Ÿ— Infrastructure

[!NOTE]

Docker distribution with support for compose is required, the following are supported:

  • Docker
  • Rancher - macOS users may want to use VZ instead of QEMU
  • Podman - requires 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 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 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:50051.

๐Ÿ”Ž Observability

Get complete visibility of the agentโ€™s inner workings via our observability stack.

Instructions

  1. Start all services related to Bee Observe npm run infra:start --profile=observe
  2. Run the agent npm run start src/agent_observe.ts
  3. Upload the final trace to the MLFlow (the agent will print instructions on how to do that).
  4. See visualized trace in MLFlow web application http://127.0.0.1:8080/#/experiments/0
    • Credentials: (user: admin, password: password)

[!TIP]

Configuration file is infra/observe/.env.docker.

[beta]v0.14.0