pub struct InspectBackgroundTaskTool { /* private fields */ }Expand description
Query the status and progress of a background task. Without task_id, list all tasks;
with it, query the most recent message block for a single task.
Implementations§
Trait Implementations§
Source§impl Default for InspectBackgroundTaskTool
impl Default for InspectBackgroundTaskTool
Source§impl Tool for InspectBackgroundTaskTool
impl Tool for InspectBackgroundTaskTool
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 InspectBackgroundTaskTool
impl RefUnwindSafe for InspectBackgroundTaskTool
impl Send for InspectBackgroundTaskTool
impl Sync for InspectBackgroundTaskTool
impl Unpin for InspectBackgroundTaskTool
impl UnsafeUnpin for InspectBackgroundTaskTool
impl UnwindSafe for InspectBackgroundTaskTool
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