pub struct ContextInfo {
pub message_count: usize,
pub estimated_input_tokens: u64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub system_prompt_preview: String,
pub memory_summary: Option<String>,
pub project_overview_preview: Option<String>,
pub recent_messages_preview: Vec<String>,
pub model_name: String,
pub max_tokens: u32,
}Expand description
Context information for display
Fields§
§message_count: usizeMessage count
estimated_input_tokens: u64Estimated input tokens
total_input_tokens: u64Total input tokens (lifetime)
total_output_tokens: u64Total output tokens (lifetime)
system_prompt_preview: StringSystem prompt preview
memory_summary: Option<String>Memory summary
project_overview_preview: Option<String>Project overview preview
recent_messages_preview: Vec<String>Last few messages preview
model_name: StringModel name
max_tokens: u32Max tokens setting
Auto Trait Implementations§
impl Freeze for ContextInfo
impl RefUnwindSafe for ContextInfo
impl Send for ContextInfo
impl Sync for ContextInfo
impl Unpin for ContextInfo
impl UnsafeUnpin for ContextInfo
impl UnwindSafe for ContextInfo
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