Skip to main content

Crate bamboo_agent_core

Crate bamboo_agent_core 

Source
Expand description

Core agent functionality for Bamboo.

Re-exports§

pub use agent::events::AgentEvent;
pub use agent::hooks::AgentHook;
pub use agent::types::parse_prompt_external_memory_sections;
pub use agent::types::PromptSnapshotExternalMemoryParts;
pub use agent::AgentError;
pub use tools::classify_tool;
pub use tools::execute_tool_call;
pub use tools::finalize_tool_calls;
pub use tools::handle_tool_result_with_agentic_support;
pub use tools::normalize_tool_name;
pub use tools::parse_tool_args;
pub use tools::parse_tool_args_best_effort;
pub use tools::try_parse_agentic_result;
pub use tools::AgenticContext;
pub use tools::AgenticTool;
pub use tools::AgenticToolResult;
pub use tools::RegistryError;
pub use tools::SharedTool;
pub use tools::SmartCodeReviewTool;
pub use tools::Tool;
pub use tools::ToolCallAccumulator;
pub use tools::ToolError;
pub use tools::ToolExecutionContext;
pub use tools::ToolExecutor;
pub use tools::ToolGoal;
pub use tools::ToolHandlingOutcome;
pub use tools::ToolMutability;
pub use tools::ToolRegistry;

Modules§

agent
Agent core types and error handling
composition
Tool Composition DSL for building complex tool workflows
storage
Persistent storage port definitions.
tools
Tool execution system for Bamboo agents.
workspace_state

Structs§

CompressionEvent
Persistent context-compression event.
ConversationSummary
Summary of conversation context for budget management.
FunctionCall
FunctionSchema
Function metadata for tool schema definition.
ImageOcrLine
OCR line with bounding box (pixels relative to the image).
ImageOcrResult
OCR results for a single image part.
ImageUrlRef
Message
A single message in a conversation.
PendingQuestion
A pending question waiting for user response.
PromptMemoryObservability
Prompt-memory observability summary captured during external-memory injection.
PromptSnapshot
Structured snapshot of the effective system prompt and its major sections.
Session
A complete conversation session with state management.
TokenBudgetUsage
Token budget usage information sent to frontend.
TokenUsage
Re-exported shared token usage type.
ToolCall
ToolResult
Represents the result of executing a tool.
ToolSchema
Schema definition for a tool.

Enums§

CompressionTriggerType
Trigger type for a compression event.
MessageContent
Message content in a conversation.
MessagePart
MessagePhase
Assistant message phase used by Responses-style models.
Role
Message role in a conversation.
SessionKind
Session type marker for spawn-session support.

Traits§

Storage
Trait for session storage backends.