pub struct AgentTools { /* private fields */ }Expand description
Agent tools for workspace interaction
Implementations§
Source§impl AgentTools
impl AgentTools
Sourcepub fn new(working_dir: PathBuf, require_approval: bool) -> Self
pub fn new(working_dir: PathBuf, require_approval: bool) -> Self
Create new agent tools instance
Sourcepub fn set_event_sender(&mut self, sender: EventSender)
pub fn set_event_sender(&mut self, sender: EventSender)
Set event sender for streaming output
Sourcepub async fn execute(&self, call: &ToolCall) -> ToolResult
pub async fn execute(&self, call: &ToolCall) -> ToolResult
Execute a tool call
Auto Trait Implementations§
impl Freeze for AgentTools
impl RefUnwindSafe for AgentTools
impl Send for AgentTools
impl Sync for AgentTools
impl Unpin for AgentTools
impl UnwindSafe for AgentTools
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