Skip to main content

Crate bamboo_engine

Crate bamboo_engine 

Source
Expand description

Bamboo engine — runtime, skills, metrics, MCP.

Re-exports§

pub use app_context::AgentSessionContext;
pub use runtime::agent::AgentBuilder;
pub use runtime::config::AgentLoopConfig;
pub use runtime::config::AuxiliaryModelConfig;
pub use runtime::config::ImageFallbackConfig;
pub use runtime::config::ImageFallbackMode;
pub use runtime::execution::runner_state::AgentRunner;
pub use runtime::execution::runner_state::AgentStatus;
pub use runtime::hooks::HookRunner;
pub use runtime::managers::LifecycleManager;
pub use runtime::managers::LlmManager;
pub use runtime::managers::MemoryManager;
pub use runtime::managers::MiniLoopExecutor;
pub use runtime::managers::PromptManager;
pub use runtime::managers::ToolManager;
pub use runtime::runner::run_agent_loop_with_config;
pub use runtime::runtime::AgentRuntime;
pub use runtime::runtime::AgentRuntimeBuilder;
pub use runtime::runtime::ExecuteRequest;
pub use runtime::task_context::TaskLoopContext;
pub use runtime::task_evaluation::evaluate_task_progress;
pub use runtime::task_evaluation::TaskEvaluationResult;
pub use runtime::Agent;
pub use skills::types::SkillDefinition;
pub use skills::types::SkillFilter;
pub use skills::types::SkillStoreConfig;
pub use skills::SkillManager;
pub use skills::SkillStore;
pub use skills::SkillUpdate;
pub use metrics::aggregator::aggregate_monthly;
pub use metrics::aggregator::aggregate_weekly;
pub use metrics::aggregator::PeriodMetrics;
pub use metrics::bus::MetricsBus;
pub use metrics::collector::MetricsCollector;
pub use metrics::events::MetricsEvent;
pub use metrics::storage::MetricsError;
pub use metrics::storage::MetricsResult;
pub use metrics::storage::MetricsStorage;
pub use metrics::storage::SqliteMetricsStorage;
pub use metrics::worker::MetricsWorker;
pub use mcp::executor::CompositeToolExecutor;
pub use mcp::executor::McpToolExecutor;
pub use mcp::manager::McpServerManager;
pub use metrics::types::*;
pub use mcp::config::*;
pub use mcp::types::*;

Modules§

access_control
agent
app_context
Dependency-inversion context for the agent-session-orchestration cluster.
auto_dream
config
context
events
Engine event infrastructure.
execution
gold_auto_answer
hooks
managers
mcp
MCP (Model Context Protocol) client library for Bamboo Agent
message_hooks
Message preflight hooks.
metrics
Metrics collection and aggregation system (re-exported from bamboo-agent-metrics).
metrics_service
model_areas
Single, explicit boundary between global and session-bound model configuration.
model_config_helper
prompt_defaults
Global prompt template defaults used by new sessions.
resource_helpers
runner
runtime
Agent execution runtime: loop, stream handling, task evaluation.
runtime_metadata
selection
server_tools
Server-side tool implementations.
session_app
Session management application logic.
session_port
skills
Agent skill management (re-exported from bamboo-agent-skill crate).
store
stream
task_context
task_evaluation
title_gen
Backend auto-title-generation service.
types

Structs§

FunctionCall
FunctionSchema
Function metadata for tool schema definition.
Message
A single message in a conversation.
PromptSnapshot
Structured snapshot of the effective system prompt and its major sections.
Session
A complete conversation session with state management.
TokenUsage
Token consumption statistics for a single LLM call or aggregated period.
ToolCall
ToolExecutionContext
Context passed to tools during execution.
ToolRegistry
Thread-safe tool registry.
ToolResult
Represents the result of executing a tool.
ToolSchema
Schema definition for a tool.

Enums§

AgentError
Errors that can occur during agent operations
AgentEvent
Represents events emitted during agent execution.
MessageContent
Message content in a conversation.
MessagePart
MessagePhase
Assistant message phase used by Responses-style models.
Role
Message role in a conversation.
ToolError
Errors that can occur during tool execution

Traits§

AgentHook
Trait for agent lifecycle hooks.
RuntimeSessionPersistence
Port for runtime (non-authoritative) session persistence.
Tool
Trait for implementing executable tools.
ToolExecutor
Trait for tool execution backends