pub struct StreamEvent<'a> {
pub case: &'a str,
pub platform: &'a str,
pub model: &'a str,
pub turn: usize,
pub event: &'a ToolEvent,
}Expand description
One streamed tool event, tagged with the run it belongs to, delivered live to
a Runner::run_all_streaming sink so a consumer can watch what a skill does
and short-circuit.
Fields§
§case: &'a strThe test case’s name.
platform: &'a strThe platform (harness) under test.
model: &'a strThe model under test.
turn: usize1-based assistant-turn index within this run.
event: &'a ToolEventThe normalized tool event.
Auto Trait Implementations§
impl<'a> Freeze for StreamEvent<'a>
impl<'a> RefUnwindSafe for StreamEvent<'a>
impl<'a> Send for StreamEvent<'a>
impl<'a> Sync for StreamEvent<'a>
impl<'a> Unpin for StreamEvent<'a>
impl<'a> UnsafeUnpin for StreamEvent<'a>
impl<'a> UnwindSafe for StreamEvent<'a>
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