pub struct SmartCodeReviewTool { /* private fields */ }Expand description
Smart code review tool with autonomous execution.
An agentic tool that autonomously reviews code, identifies issues, and plans fixes using multiple tool calls.
§Capabilities
- Chooses appropriate review strategy
- Asks clarifying questions when needed
- Plans and executes follow-up actions
- Tracks progress across iterations
§Example
ⓘ
use bamboo_agent::agent::core::tools::agentic::*;
let tool = SmartCodeReviewTool::new();
let executor = Arc::new(BuiltinToolExecutor::new());
let mut context = AgenticContext::new(executor);
let goal = ToolGoal::new(
"Review code for bugs",
json!({"files": ["src/main.rs"]})
);
let result = tool.execute(goal, &mut context).await?;Implementations§
Trait Implementations§
Source§impl AgenticTool for SmartCodeReviewTool
impl AgenticTool for SmartCodeReviewTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get tool description.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
goal: ToolGoal,
context: &'life1 mut AgenticContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
goal: ToolGoal,
context: &'life1 mut AgenticContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the agentic tool with goal and context. Read more
Auto Trait Implementations§
impl Freeze for SmartCodeReviewTool
impl RefUnwindSafe for SmartCodeReviewTool
impl Send for SmartCodeReviewTool
impl Sync for SmartCodeReviewTool
impl Unpin for SmartCodeReviewTool
impl UnsafeUnpin for SmartCodeReviewTool
impl UnwindSafe for SmartCodeReviewTool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more