pub struct ContextSize {
pub message_count: usize,
pub message_chars: usize,
pub message_estimated_tokens: usize,
pub execution_history_count: usize,
pub execution_history_chars: usize,
pub execution_history_estimated_tokens: usize,
pub scratchpad_chars: usize,
pub scratchpad_estimated_tokens: usize,
pub total_chars: usize,
pub total_estimated_tokens: usize,
pub agent_breakdown: HashMap<String, AgentContextSize>,
}Fields§
§message_count: usize§message_chars: usize§message_estimated_tokens: usize§execution_history_count: usize§execution_history_chars: usize§execution_history_estimated_tokens: usize§scratchpad_chars: usize§scratchpad_estimated_tokens: usize§total_chars: usize§total_estimated_tokens: usize§agent_breakdown: HashMap<String, AgentContextSize>Per-agent context size breakdown
Trait Implementations§
Source§impl Clone for ContextSize
impl Clone for ContextSize
Source§fn clone(&self) -> ContextSize
fn clone(&self) -> ContextSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextSize
impl Debug for ContextSize
Source§impl Default for ContextSize
impl Default for ContextSize
Source§fn default() -> ContextSize
fn default() -> ContextSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextSize
impl<'de> Deserialize<'de> for ContextSize
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 Freeze for ContextSize
impl RefUnwindSafe for ContextSize
impl Send for ContextSize
impl Sync for ContextSize
impl Unpin for ContextSize
impl UnsafeUnpin for ContextSize
impl UnwindSafe for ContextSize
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