pub struct Watch {
pub policy: Policy,
pub fragments: bool,
pub in_order: bool,
pub stop_after: Option<usize>,
}Expand description
How the watcher behaves for one session.
Fields§
§policy: PolicyWhat to do with interrupts.
fragments: boolPrint each delta in brackets instead of joining them, so chunk normalization is visible in the transcript.
in_order: boolDraw one line per update, in arrival order, instead of grouping a tool call onto one line when it closes.
The trade ag-ui-client’s session docs describe, made visible: the
grouped view reads better and reorders anything that happened inside a
call; this one is faithful and noisier. Neither is more correct — the
arrival order is the only nesting there is, so a view that keeps it is
the one that can show it.
stop_after: Option<usize>Stop reading after this many updates and drop the stream — what a user hitting Ctrl-C does, and the only cancellation a client actually has.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Watch
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnsafeUnpin for Watch
impl UnwindSafe for Watch
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