pub struct PassthroughHook;Expand description
Zero-sized hook that admits every call unchanged — the literal absence of behavior, not a policy.
TurnRunner::new() defaults to this hook: callers who want a filter
chain opt in via TurnRunner::with_hook(_, _, filter_chain).
Concrete filter policies (dedup, approval, kill-switch) are host
concerns and live in causa_runtime::filter or beyond.
Trait Implementations§
Source§impl Clone for PassthroughHook
impl Clone for PassthroughHook
Source§fn clone(&self) -> PassthroughHook
fn clone(&self) -> PassthroughHook
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 moreimpl Copy for PassthroughHook
Source§impl Debug for PassthroughHook
impl Debug for PassthroughHook
Source§impl Default for PassthroughHook
impl Default for PassthroughHook
Source§fn default() -> PassthroughHook
fn default() -> PassthroughHook
Returns the “default value” for a type. Read more
Source§impl ToolUseHook for PassthroughHook
impl ToolUseHook for PassthroughHook
Source§fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
calls: Vec<ToolCallPayload>,
_ctx: &'life1 HookCtx<'life2>,
) -> Pin<Box<dyn Future<Output = HookOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
calls: Vec<ToolCallPayload>,
_ctx: &'life1 HookCtx<'life2>,
) -> Pin<Box<dyn Future<Output = HookOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Filter the model-emitted batch between receipt and dispatch:
return what to execute and what to reject.
Auto Trait Implementations§
impl Freeze for PassthroughHook
impl RefUnwindSafe for PassthroughHook
impl Send for PassthroughHook
impl Sync for PassthroughHook
impl Unpin for PassthroughHook
impl UnsafeUnpin for PassthroughHook
impl UnwindSafe for PassthroughHook
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