pub struct ContextBundle {
pub stage: String,
pub budget_tokens: u32,
pub used_tokens: u32,
pub capsules: Vec<ContextCapsule>,
pub excluded: Vec<ContextCapsule>,
pub skipped: bool,
pub top_score: f32,
}Fields§
§stage: String§budget_tokens: u32§used_tokens: u32§capsules: Vec<ContextCapsule>§excluded: Vec<ContextCapsule>§skipped: boolv0.6: true when the top capsule score was below min_score.
All capsules are empty; no tokens were injected.
top_score: f32v0.6: best composite score observed before the skip check. Useful for diagnostics (“why was the brain silent?”).
Trait Implementations§
Source§impl Clone for ContextBundle
impl Clone for ContextBundle
Source§fn clone(&self) -> ContextBundle
fn clone(&self) -> ContextBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContextBundle
impl RefUnwindSafe for ContextBundle
impl Send for ContextBundle
impl Sync for ContextBundle
impl Unpin for ContextBundle
impl UnsafeUnpin for ContextBundle
impl UnwindSafe for ContextBundle
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