pub struct ToolResultCompression {
pub text: String,
pub tokens_original: u32,
pub tokens_compressed: u32,
pub repeat: bool,
}Expand description
A compressed MCP tool result from SqzEngine::compress_tool_result.
Token counts are chars/4 estimates, the counter the net-win gate uses.
Fields§
§text: String§tokens_original: u32§tokens_compressed: u32§repeat: boolA ref or delta against content already sent: lossless. Otherwise a first-pass compression, which is lossy.
Trait Implementations§
Source§impl Clone for ToolResultCompression
impl Clone for ToolResultCompression
Source§fn clone(&self) -> ToolResultCompression
fn clone(&self) -> ToolResultCompression
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 ToolResultCompression
impl Debug for ToolResultCompression
impl Eq for ToolResultCompression
Source§impl PartialEq for ToolResultCompression
impl PartialEq for ToolResultCompression
impl StructuralPartialEq for ToolResultCompression
Auto Trait Implementations§
impl Freeze for ToolResultCompression
impl RefUnwindSafe for ToolResultCompression
impl Send for ToolResultCompression
impl Sync for ToolResultCompression
impl Unpin for ToolResultCompression
impl UnsafeUnpin for ToolResultCompression
impl UnwindSafe for ToolResultCompression
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.