pub struct CompressedToolResult {
pub text: String,
pub original_tokens: usize,
pub compressed_tokens: usize,
pub method: CompressionMethod,
}Expand description
Output of compressing a single tool result.
Fields§
§text: StringCompressed (or unchanged) text.
original_tokens: usizeToken count before compression.
compressed_tokens: usizeToken count after compression.
method: CompressionMethodMethod applied.
Trait Implementations§
Source§impl Clone for CompressedToolResult
impl Clone for CompressedToolResult
Source§fn clone(&self) -> CompressedToolResult
fn clone(&self) -> CompressedToolResult
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 moreAuto Trait Implementations§
impl Freeze for CompressedToolResult
impl RefUnwindSafe for CompressedToolResult
impl Send for CompressedToolResult
impl Sync for CompressedToolResult
impl Unpin for CompressedToolResult
impl UnsafeUnpin for CompressedToolResult
impl UnwindSafe for CompressedToolResult
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