pub struct NoOpAsyncHooks;Expand description
Default async hook implementation (no side effects).
Trait Implementations§
Source§impl TurnHooksAsync for NoOpAsyncHooks
impl TurnHooksAsync for NoOpAsyncHooks
fn on_turn_start<'life0, 'life1, 'async_trait>(
&'life0 self,
_input: &'life1 TurnInput,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_patch_dispatched<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 PatchDispatchContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn on_plan_step_execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_step_id: &'life1 str,
_tool: &'life2 str,
_args: &'life3 Value,
) -> Pin<Box<dyn Future<Output = Result<Value, PlanStepError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn on_plan_step_execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_step_id: &'life1 str,
_tool: &'life2 str,
_args: &'life3 Value,
) -> Pin<Box<dyn Future<Output = Result<Value, PlanStepError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Dispatch a single planner step (e.g.
file_write, MCP tools). Default: no-op error.fn on_turn_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
_outcome: &'life1 TurnOutcome,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for NoOpAsyncHooks
impl RefUnwindSafe for NoOpAsyncHooks
impl Send for NoOpAsyncHooks
impl Sync for NoOpAsyncHooks
impl Unpin for NoOpAsyncHooks
impl UnsafeUnpin for NoOpAsyncHooks
impl UnwindSafe for NoOpAsyncHooks
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