pub struct DiagnosticsExecutor { /* private fields */ }Expand description
Runs cargo check or cargo clippy and returns structured diagnostics.
Implementations§
Trait Implementations§
Source§impl Debug for DiagnosticsExecutor
impl Debug for DiagnosticsExecutor
Source§impl ToolExecutor for DiagnosticsExecutor
impl ToolExecutor for DiagnosticsExecutor
async fn execute( &self, _response: &str, ) -> Result<Option<ToolOutput>, ToolError>
Source§async fn execute_tool_call(
&self,
call: &ToolCall,
) -> Result<Option<ToolOutput>, ToolError>
async fn execute_tool_call( &self, call: &ToolCall, ) -> Result<Option<ToolOutput>, ToolError>
Execute a structured tool call. Returns
None if tool_id is not handled.Source§fn tool_definitions(&self) -> Vec<ToolDef>
fn tool_definitions(&self) -> Vec<ToolDef>
Return tool definitions this executor can handle.
Source§fn execute_confirmed(
&self,
response: &str,
) -> impl Future<Output = Result<Option<ToolOutput>, ToolError>> + Send
fn execute_confirmed( &self, response: &str, ) -> impl Future<Output = Result<Option<ToolOutput>, ToolError>> + Send
Execute bypassing confirmation checks (called after user approves).
Default: delegates to
execute.Auto Trait Implementations§
impl Freeze for DiagnosticsExecutor
impl RefUnwindSafe for DiagnosticsExecutor
impl Send for DiagnosticsExecutor
impl Sync for DiagnosticsExecutor
impl Unpin for DiagnosticsExecutor
impl UnsafeUnpin for DiagnosticsExecutor
impl UnwindSafe for DiagnosticsExecutor
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