pub struct CancelBackgroundTaskTool { /* private fields */ }Expand description
Cancel a single background task early.
Implementations§
Trait Implementations§
Source§impl Default for CancelBackgroundTaskTool
impl Default for CancelBackgroundTaskTool
Source§impl Tool for CancelBackgroundTaskTool
impl Tool for CancelBackgroundTaskTool
Source§fn schema(&self) -> &ToolSchema
fn schema(&self) -> &ToolSchema
Tool metadata. Returns a reference to avoid allocating on every call.
Source§fn safety_hint(&self, _args: &Value) -> SafetyClass
fn safety_hint(&self, _args: &Value) -> SafetyClass
Provides a safety-level hint to the sandbox policy without actually executing the
tool. Read more
Source§fn describe<'a>(
&'a self,
args: &'a Value,
_ctx: ToolContext<'a>,
) -> BoxFuture<'a, ToolCallDescription>
fn describe<'a>( &'a self, args: &'a Value, _ctx: ToolContext<'a>, ) -> BoxFuture<'a, ToolCallDescription>
Generates a “self-description” before execution, for display to the ACP client. Read more
Source§fn execute(&self, args: Value, ctx: ToolContext<'_>) -> ToolStream
fn execute(&self, args: Value, ctx: ToolContext<'_>) -> ToolStream
Initiates a tool call and returns an event stream. Read more
Auto Trait Implementations§
impl Freeze for CancelBackgroundTaskTool
impl RefUnwindSafe for CancelBackgroundTaskTool
impl Send for CancelBackgroundTaskTool
impl Sync for CancelBackgroundTaskTool
impl Unpin for CancelBackgroundTaskTool
impl UnsafeUnpin for CancelBackgroundTaskTool
impl UnwindSafe for CancelBackgroundTaskTool
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