pub struct ContextWindowSnapshot {
pub phase: ContextWindowPhase,
pub metrics: ContextWindowMetrics,
pub messages: Vec<Message>,
}Expand description
Fully assembled LLM request window plus lifecycle metadata.
Fields§
§phase: ContextWindowPhaseLifecycle phase derived from the current policy.
metrics: ContextWindowMetricsMetrics for observability and persistence.
messages: Vec<Message>Exact message list that would be sent to the model for the next turn.
Trait Implementations§
Source§impl Clone for ContextWindowSnapshot
impl Clone for ContextWindowSnapshot
Source§impl Debug for ContextWindowSnapshot
impl Debug for ContextWindowSnapshot
Source§impl<'de> Deserialize<'de> for ContextWindowSnapshot
impl<'de> Deserialize<'de> for ContextWindowSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ContextWindowSnapshot
impl Freeze for ContextWindowSnapshot
impl Move for ContextWindowSnapshot
impl RefUnwindSafe for ContextWindowSnapshot
impl Send for ContextWindowSnapshot
impl Sync for ContextWindowSnapshot
impl Unpin for ContextWindowSnapshot
impl UnsafeUnpin for ContextWindowSnapshot
impl UnwindSafe for ContextWindowSnapshot
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