pub struct NoopGuard;Expand description
No-op guard for backward compatibility
Trait Implementations§
Source§impl ReactLoopGuard for NoopGuard
impl ReactLoopGuard for NoopGuard
Source§fn on_reasoning_only<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_reasoning_only<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Model returns only reasoning, no text/tool call
Source§fn on_empty_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_empty_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Model returns empty (no text, no reasoning, no tool call)
Source§fn on_text_only<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_text_only<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 GuardCtx,
) -> Pin<Box<dyn Future<Output = GuardAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Model returns text-only (no tool call) Read more
Auto Trait Implementations§
impl Freeze for NoopGuard
impl RefUnwindSafe for NoopGuard
impl Send for NoopGuard
impl Sync for NoopGuard
impl Unpin for NoopGuard
impl UnsafeUnpin for NoopGuard
impl UnwindSafe for NoopGuard
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