pub struct ContextReading {Show 15 fields
pub model: Option<String>,
pub tokens: Option<u64>,
pub window: Option<u64>,
pub auto_compact_at: Option<u64>,
pub compacting: bool,
pub calls_since_compaction: u64,
pub from_acp: bool,
pub last_compaction_ms: Option<u64>,
pub compactions: u64,
pub observed_ms: Option<u64>,
pub last_self_compact_ms: Option<u64>,
pub compact_scheduled: bool,
pub hinted: bool,
pub task_boundary: bool,
pub fresh_by_choice: bool,
/* private fields */
}Expand description
One pane’s reading.
Fields§
§model: Option<String>§tokens: Option<u64>Tokens in context at the last main-agent call.
window: Option<u64>§auto_compact_at: Option<u64>Where the CLI compacts on its own, when it said.
compacting: boolA compaction is running now.
calls_since_compaction: u64Main-agent API calls since the last compaction (or since srv started).
from_acp: boolThe reading comes from an ACP harness’s usage_update, which is not one per model call.
last_compaction_ms: Option<u64>When the last compaction finished (unix ms).
compactions: u64Compactions finished since this pane’s reading began (kept in memory, as the rest is).
observed_ms: Option<u64>When the tokens were last read (unix ms).
last_self_compact_ms: Option<u64>When the agent last asked to compact itself (unix ms).
compact_scheduled: boolA self-compaction is waiting for the turn to end.
hinted: boolThe hint fired and the context hasn’t dropped below the re-arm point.
task_boundary: boolThis turn finished a Kanban task (Tasks complete or submit).
fresh_by_choice: boolThe next spawn is an Agents fresh one: it starts on the handoff alone,
without the continuation packet (which says “continue as if uninterrupted”).
Trait Implementations§
Source§impl Clone for ContextReading
impl Clone for ContextReading
Source§fn clone(&self) -> ContextReading
fn clone(&self) -> ContextReading
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextReading
impl Debug for ContextReading
Source§impl Default for ContextReading
impl Default for ContextReading
Source§fn default() -> ContextReading
fn default() -> ContextReading
impl Eq for ContextReading
Source§impl PartialEq for ContextReading
impl PartialEq for ContextReading
Source§impl Serialize for ContextReading
impl Serialize for ContextReading
impl StructuralPartialEq for ContextReading
Auto Trait Implementations§
impl Freeze for ContextReading
impl RefUnwindSafe for ContextReading
impl Send for ContextReading
impl Sync for ContextReading
impl Unpin for ContextReading
impl UnsafeUnpin for ContextReading
impl UnwindSafe for ContextReading
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more