pub struct TaskStopTool;Expand description
TaskStop tool - stop a running background task
Implementations§
Source§impl TaskStopTool
impl TaskStopTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn input_schema(&self) -> ToolInputSchema
pub async fn execute( &self, input: Value, _context: &ToolContext, ) -> Result<ToolResult, AgentError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskStopTool
impl RefUnwindSafe for TaskStopTool
impl Send for TaskStopTool
impl Sync for TaskStopTool
impl Unpin for TaskStopTool
impl UnsafeUnpin for TaskStopTool
impl UnwindSafe for TaskStopTool
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