Expand description
Bamboo engine — runtime, agent loop, and orchestration.
Re-exports§
pub use session_repository::SessionRepository;pub use token_usage_log::TokenUsageRecord;pub use app_context::AgentSessionContext;pub use runtime::execution::agent_spawn::read_cached_session;pub use runtime::execution::agent_spawn::SessionCache;pub use session_app::child_completion_coordinator::ChildCompletionCoordinator;pub use runtime::agent::AgentBuilder;pub use runtime::config::ApprovalDelegate;pub use runtime::config::AuxiliaryModelConfig;pub use runtime::config::ChildApprovalOutcome;pub use runtime::config::ChildApprovalRequest;pub use runtime::config::GuardianConfig;pub use runtime::config::GuardianSpawner;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::model_roster::ModelRoster;pub use runtime::model_roster::RoleModel;pub use runtime::runtime::AgentRuntime;pub use runtime::runtime::AgentRuntimeBuilder;pub use runtime::runtime::ExecuteRequest;pub use runtime::runtime::ExecuteRequestBuilder;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 sdk::runner::child_runner;pub use sdk::runner::ChildRunner;pub use sdk::runner::RunChildInput;pub use sdk::spawn::run_child_spawn;
Modules§
- agent
- app_
context - Dependency-inversion context for the agent-session-orchestration cluster.
- auto_
dream - config
- context
- events
- Engine event infrastructure.
- execution
- external_
agents - gardener
- Background “gardener”: LLM-driven remediation of memory-quality problems.
- gold_
auto_ answer - hooks
- llm_
summarizer - LLM-backed conversation summarizer.
- managers
- message_
hooks - Message preflight hooks.
- 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.
- runner
- runtime
- Agent execution runtime: loop, stream handling, task evaluation.
- sdk
- Ergonomic SDK surface over the canonical child-spawn path.
- session_
app - Session management application logic.
- session_
repository - Canonical session coordinator owned by the framework.
- stream
- task_
context - task_
evaluation - title_
gen - Backend auto-title-generation service.
- token_
usage_ log - Append-only, per-LLM-call token-usage log.
Structs§
- Function
Call - Function
Schema - Function metadata for tool schema definition.
- Message
- A single message in a conversation.
- Prompt
Snapshot - Structured snapshot of the effective system prompt and its major sections.
- Session
- A complete conversation session with state management.
- Token
Usage - Token consumption statistics for a single LLM call or aggregated period.
- Tool
Call - Tool
Execution Context - Context passed to tools during execution.
- Tool
Registry - Thread-safe tool registry.
- Tool
Result - Represents the result of executing a tool.
- Tool
Schema - Schema definition for a tool.
Enums§
- Agent
Error - Errors that can occur during agent operations
- Agent
Event - Represents events emitted during agent execution.
- Message
Content - Message content in a conversation.
- Message
Part - Message
Phase - Assistant message phase used by Responses-style models.
- Role
- Message role in a conversation.
- Tool
Error - Errors that can occur during tool execution
Traits§
- Agent
Hook - Trait for agent lifecycle hooks.
- Runtime
Session Persistence - Port for runtime (non-authoritative) session persistence.
- Tool
- Trait for implementing executable tools.
- Tool
Executor - Trait for tool execution backends