pub struct LiveProgressHook { /* private fields */ }Expand description
Hook that prints a verbose progress trace to stderr in real time.
Pair with AgentLoop::with_hook(Arc::new(LiveProgressHook::default())) to
see model calls, tool calls, and tool results as they happen — instead of
staring at a silent terminal for 60 seconds and then post-mortem’ing a JSONL
file. Independent of SessionRecorder; both can be installed together.
Output is structured to be greppable: [iter=N] prefix on every line, and
each line is one event. Writes go to stderr, so stdout stays clean for
the final answer.
Implementations§
Trait Implementations§
Source§impl Default for LiveProgressHook
impl Default for LiveProgressHook
Source§fn default() -> LiveProgressHook
fn default() -> LiveProgressHook
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for LiveProgressHook
impl RefUnwindSafe for LiveProgressHook
impl Send for LiveProgressHook
impl Sync for LiveProgressHook
impl Unpin for LiveProgressHook
impl UnsafeUnpin for LiveProgressHook
impl UnwindSafe for LiveProgressHook
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