pub struct SessionCompactionStartData {
pub conversation_tokens: Option<f64>,
pub system_tokens: Option<f64>,
pub tool_definitions_tokens: Option<f64>,
}Expand description
Context window breakdown at the start of LLM-powered conversation compaction
Fields§
§conversation_tokens: Option<f64>Token count from non-system messages (user, assistant, tool) at compaction start
system_tokens: Option<f64>Token count from system message(s) at compaction start
tool_definitions_tokens: Option<f64>Token count from tool definitions at compaction start
Trait Implementations§
Source§impl Clone for SessionCompactionStartData
impl Clone for SessionCompactionStartData
Source§fn clone(&self) -> SessionCompactionStartData
fn clone(&self) -> SessionCompactionStartData
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 moreSource§impl Debug for SessionCompactionStartData
impl Debug for SessionCompactionStartData
Source§impl<'de> Deserialize<'de> for SessionCompactionStartData
impl<'de> Deserialize<'de> for SessionCompactionStartData
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 SessionCompactionStartData
impl RefUnwindSafe for SessionCompactionStartData
impl Send for SessionCompactionStartData
impl Sync for SessionCompactionStartData
impl Unpin for SessionCompactionStartData
impl UnsafeUnpin for SessionCompactionStartData
impl UnwindSafe for SessionCompactionStartData
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