Skip to main content

Crate bamboo_agent

Crate bamboo_agent 

Source
Expand description

Bamboo - A fully self-contained AI agent backend framework

Bamboo provides a complete backend system for AI agents, including:

  • Built-in HTTP/HTTPS server (Actix-web)
  • Agent execution loop with tool support
  • LLM provider integrations (OpenAI, Anthropic, Google Gemini, GitHub Copilot)
  • Session management and persistence
  • Workflow and slash command systems
  • Process management for external tools

§Features

  • Dual mode: Binary (standalone server) or library (embedded)
  • Unified directory: All data in the Bamboo data directory (default ${HOME}/.bamboo)
  • Production-ready: Built-in CORS, rate limiting, security headers

§Quick Start

§Binary Mode

bamboo serve --port 9562 --data-dir "$HOME/.bamboo"

§Library Mode

use bamboo_agent::{BambooServer, Config};

#[tokio::main]
async fn main() {
    let config = Config::new();
    let server = BambooServer::new(config);
    server.start().await.unwrap();
}

Re-exports§

pub use error::BambooError;
pub use error::Result;
pub use bamboo_server as server;
pub use bamboo_tools as tools;
pub use bamboo_infrastructure as core;
pub use bamboo_infrastructure as infrastructure;

Modules§

agent
Agent system - Complete AI agent framework
commands
Command and workflow management
error
Error types for Bamboo

Structs§

Agent
Stable public entry point for agent execution.
AgentBuilder
Builder for Agent.
BambooBuilder
Builder pattern for creating BambooServer
BambooServer
Main Bamboo server instance
Config
Main configuration structure for Bamboo agent
ServerConfig
HTTP server configuration