Skip to main content

An agent runtime designed for tool-driven loop engineering.

Project description

BumbleHive

An agent runtime designed for tool-driven loop engineering.

BumbleHive is a lightweight Python library for building AI agents around a clear execution loop: build context, call the model, execute tools, observe events, and continue until a final result is produced.

Highlights

  • Tool-driven agent loop with built-in and MCP-backed tools.
  • Streaming lifecycle events for model deltas, tool calls, errors, and final results.
  • Session-aware runtime with isolated history and concurrency control.
  • Modular Python APIs for configuration, providers, tools, skills, and observability.

Quick Start

import bumblehive


runtime = bumblehive.from_config(
    {
        "provider": {"model": "gpt-5.4"},
        "agent": {"tool_names": []},
    }
)

result = await runtime.run("Hello", session_id="user:123")
print(result.final_content)

Streaming

async for event in runtime.stream("Hello", session_id="user:123"):
    print(event.kind, event.session_id, event.payload)

Local Development

The base requirements are Python 3.11+ and Node.js 20.19+/22.12+. A dedicated Conda environment is recommended:

conda create -n bumblehive_env python=3.11 -y
conda activate bumblehive_env
npm run setup
npm run doctor

npm run setup uses the currently active Python interpreter, does not depend on a fixed Conda path, and installs the SDK dependencies, Server, WebUI, and desktop dependencies together.

For daily development:

conda activate bumblehive_env
npm run dev

This starts the Server on 127.0.0.1:18421 and the WebUI on 127.0.0.1:1420. Use npm run dev:server or npm run dev:web to run one component, and npm test for the Python test suite.

Desktop

macOS additionally requires Rust and Xcode Command Line Tools. Windows additionally requires the Rust MSVC toolchain, WebView2, and Microsoft C++ Build Tools with the Desktop development with C++ workload.

On a clean checkout, build the generated desktop sidecar before running the full desktop environment check:

npm run build:sidecar
npm run doctor:desktop

Then start development or create a platform-specific installer:

npm run dev:desktop
npm run build:mac
npm run build:win

The sidecar is a generated artifact and is not created by npm run setup. dev:desktop and both packaging commands rebuild it automatically with the current Python environment. Use build:mac only on macOS and build:win only on Windows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bumblehive-0.1.0.tar.gz (115.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bumblehive-0.1.0-py3-none-any.whl (107.9 kB view details)

Uploaded Python 3

File details

Details for the file bumblehive-0.1.0.tar.gz.

File metadata

  • Download URL: bumblehive-0.1.0.tar.gz
  • Upload date:
  • Size: 115.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for bumblehive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3bc66c0f02de7374b123e69db3a611afc90978a2f8be8cc4f1d745a57a0e17b8
MD5 5a38a1f71817f48e65e4783da1642870
BLAKE2b-256 8fee4a8ea17eb21b4a8978b5be28147ae390e09278e57cf68b837b76623fcc50

See more details on using hashes here.

File details

Details for the file bumblehive-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bumblehive-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 107.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for bumblehive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c98ea6a1f8cd480cd8c09d1e55abf52a2ec0c88495c3a904d1a9d1753f96818d
MD5 d38ffaadffd334ecca2149d5d3eb0e0e
BLAKE2b-256 e531ff2f1b12076d0c2488947062107432741a8181914d8f061b292fe67927f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page