pub struct ContextCompressionExposure {
pub budget: TokenBudget,
pub active_tokens: u32,
pub active_usage_percent: f64,
pub active_usage_percent_rounded: u8,
pub should_expose_tool: bool,
}Expand description
Metadata about current context pressure, used to decide when compression should be requested by host-side control flow.
Fields§
§budget: TokenBudget§active_tokens: u32§active_usage_percent: f64§active_usage_percent_rounded: u8§should_expose_tool: boolTrait Implementations§
Source§impl Clone for ContextCompressionExposure
impl Clone for ContextCompressionExposure
Auto Trait Implementations§
impl Freeze for ContextCompressionExposure
impl RefUnwindSafe for ContextCompressionExposure
impl Send for ContextCompressionExposure
impl Sync for ContextCompressionExposure
impl Unpin for ContextCompressionExposure
impl UnsafeUnpin for ContextCompressionExposure
impl UnwindSafe for ContextCompressionExposure
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