pub struct Truncation {
pub content: String,
pub truncated: bool,
pub truncated_by: Option<TruncatedBy>,
pub total_lines: usize,
pub total_bytes: usize,
pub output_lines: usize,
pub output_bytes: usize,
pub last_line_partial: bool,
pub first_line_exceeds_limit: bool,
pub max_lines: usize,
pub max_bytes: usize,
}Expand description
What was kept, as stored in tool result details.
Fields§
§content: StringThe kept text.
truncated: boolWhether anything was dropped.
truncated_by: Option<TruncatedBy>The limit that dropped content.
total_lines: usizeLines in the input.
total_bytes: usizeBytes in the input.
output_lines: usizeLines kept.
output_bytes: usizeBytes kept.
last_line_partial: boolThe only kept line was cut (tail truncation).
first_line_exceeds_limit: boolThe first line alone exceeds the byte limit (head truncation).
max_lines: usizeLine limit applied.
max_bytes: usizeByte limit applied.
Trait Implementations§
Source§impl Clone for Truncation
impl Clone for Truncation
Source§impl Debug for Truncation
impl Debug for Truncation
impl Eq for Truncation
Source§impl PartialEq for Truncation
impl PartialEq for Truncation
Source§impl Serialize for Truncation
impl Serialize for Truncation
impl StructuralPartialEq for Truncation
Auto Trait Implementations§
impl Freeze for Truncation
impl RefUnwindSafe for Truncation
impl Send for Truncation
impl Sync for Truncation
impl Unpin for Truncation
impl UnsafeUnpin for Truncation
impl UnwindSafe for Truncation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.