pub struct PresentationHook<F: ToolFormatter = Agent> { /* private fields */ }Expand description
Hook that presents tool calls with rich CLI formatting
Generic over F: ToolFormatter to enable testing with mock formatters.
Defaults to Agent for normal usage.
Implementations§
Trait Implementations§
Source§impl<F: ToolFormatter + 'static> AgentHook for PresentationHook<F>
impl<F: ToolFormatter + 'static> AgentHook for PresentationHook<F>
Source§fn on_event(&self, event: &AgentEvent)
fn on_event(&self, event: &AgentEvent)
Called when an event occurs
Auto Trait Implementations§
impl<F> Freeze for PresentationHook<F>
impl<F> RefUnwindSafe for PresentationHook<F>where
F: RefUnwindSafe,
impl<F> Send for PresentationHook<F>
impl<F> Sync for PresentationHook<F>
impl<F> Unpin for PresentationHook<F>
impl<F> UnwindSafe for PresentationHook<F>where
F: RefUnwindSafe,
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