pub struct StepId(pub Uuid);Expand description
Unique identifier for one provider turn (one model call) within a run.
A run is composed of one or more steps: each step is a
chat_stream call plus any tool execution that follows. The engine
mints a fresh StepId at the start of every step and surfaces it on
crate::StreamChunk::StepStarted / crate::StreamChunk::StepFinished
so middlewares can scope per-step state (e.g. token counts, retries)
without tracking iteration numbers themselves.
Tuple Fields§
§0: UuidImplementations§
Trait Implementations§
impl Eq for StepId
impl StructuralPartialEq for StepId
Auto Trait Implementations§
impl Freeze for StepId
impl RefUnwindSafe for StepId
impl Send for StepId
impl Sync for StepId
impl Unpin for StepId
impl UnsafeUnpin for StepId
impl UnwindSafe for StepId
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