pub struct MockToolRuntime { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for MockToolRuntime
impl Clone for MockToolRuntime
Source§fn clone(&self) -> MockToolRuntime
fn clone(&self) -> MockToolRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockToolRuntime
impl Debug for MockToolRuntime
Source§impl Default for MockToolRuntime
impl Default for MockToolRuntime
Source§fn default() -> MockToolRuntime
fn default() -> MockToolRuntime
Returns the “default value” for a type. Read more
Source§impl ToolRuntime for MockToolRuntime
impl ToolRuntime for MockToolRuntime
fn specs(&self) -> Vec<ToolSpec>
fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolRuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn repair_invocation(
&self,
_invocation: &mut ToolInvocation,
) -> Option<Vec<ToolInputRepair>>
fn repair_invocation( &self, _invocation: &mut ToolInvocation, ) -> Option<Vec<ToolInputRepair>>
Apply schema-guided input repair in place, returning the repairs made
(or
None when the input is already clean / no schema matches). Read moreSource§fn invoke_cancellable<'life0, 'life1, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
_cancel: Option<&'life1 CancellationToken>,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolRuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn invoke_cancellable<'life0, 'life1, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
_cancel: Option<&'life1 CancellationToken>,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolRuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Cancellation-aware variant of
invoke. When cancel is fired
the runtime SHOULD abort the in-flight tool (e.g. SIGTERM the
shell subprocess for bash) and return ToolRuntimeError:: Runtime("cancelled"). Read moreAuto Trait Implementations§
impl Freeze for MockToolRuntime
impl RefUnwindSafe for MockToolRuntime
impl Send for MockToolRuntime
impl Sync for MockToolRuntime
impl Unpin for MockToolRuntime
impl UnsafeUnpin for MockToolRuntime
impl UnwindSafe for MockToolRuntime
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