pub struct StepSnapshot { /* private fields */ }Expand description
One owned, immutable Step fact frozen after the sole writable plan window.
The runtime creates this once per Step and reuses the same Arc at every
later hook and lifecycle boundary. The owned plan retains all five lanes:
system instruction, client tools, sampling parameters, hosted extensions,
and ephemeral content. The tool snapshot preserves the exact routing handles
from which the model-visible tool lanes were materialized.
Implementations§
Source§impl StepSnapshot
impl StepSnapshot
Sourcepub const fn model(&self) -> &Info
pub const fn model(&self) -> &Info
Returns the complete frozen model identity and capability facts.
Sourcepub const fn plan(&self) -> &RequestPlan
pub const fn plan(&self) -> &RequestPlan
Returns the complete frozen plan, including every model-input lane.
Sourcepub const fn tools(&self) -> &StepToolSnapshot
pub const fn tools(&self) -> &StepToolSnapshot
Returns the exact immutable exposure/router snapshot for this Step.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StepSnapshot
impl !UnwindSafe for StepSnapshot
impl Freeze for StepSnapshot
impl Send for StepSnapshot
impl Sync for StepSnapshot
impl Unpin for StepSnapshot
impl UnsafeUnpin for StepSnapshot
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