pub struct ImmediateToolHandler<F> { /* private fields */ }Expand description
Handler that completes immediately from a synchronous function.
Implementations§
Source§impl<F> ImmediateToolHandler<F>
impl<F> ImmediateToolHandler<F>
Trait Implementations§
Source§impl<F> ToolHandler for ImmediateToolHandler<F>
impl<F> ToolHandler for ImmediateToolHandler<F>
Source§fn start(
&self,
call: ToolCall,
context: ToolCallContext,
) -> Result<LinkedToolExecutionHandle, ToolStartError>
fn start( &self, call: ToolCall, context: ToolCallContext, ) -> Result<LinkedToolExecutionHandle, ToolStartError>
Start one execution. Must return a handle with a single completion.
Source§fn supports_abort(&self) -> bool
fn supports_abort(&self) -> bool
Whether cooperative/abort cancellation is honored (D-024 / D-028).
Default false (fail-closed): capability booleans must not self-assert.
Source§fn supports_isolated_kill(&self) -> bool
fn supports_isolated_kill(&self) -> bool
Whether isolated kill after grace is available (D-024 / D-028).
Default false (fail-closed); requires a structural
ToolKillHandle.Auto Trait Implementations§
impl<F> Freeze for ImmediateToolHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for ImmediateToolHandler<F>where
F: RefUnwindSafe,
impl<F> Send for ImmediateToolHandler<F>where
F: Send,
impl<F> Sync for ImmediateToolHandler<F>where
F: Sync,
impl<F> Unpin for ImmediateToolHandler<F>where
F: Unpin,
impl<F> UnsafeUnpin for ImmediateToolHandler<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for ImmediateToolHandler<F>where
F: UnwindSafe,
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