pub struct TruncationInfo {
pub shown_chars: usize,
pub total_chars: usize,
pub remediation_hint: Option<String>,
}Expand description
Structured record of tool-output truncation. Populated at the tool boundary — the instructional notice text is rendered into the model-visible message by the loop (single site), never embedded in the tool’s returned content, so text-scanning consumers (error-line extraction, classifiers, summaries) always see clean output.
Fields§
§shown_chars: usize§total_chars: usize§remediation_hint: Option<String>Tool-specific remediation sentence (see utils::truncation_notice_with_hint).
Trait Implementations§
Source§impl Clone for TruncationInfo
impl Clone for TruncationInfo
Source§impl Debug for TruncationInfo
impl Debug for TruncationInfo
Source§impl<'de> Deserialize<'de> for TruncationInfo
impl<'de> Deserialize<'de> for TruncationInfo
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
impl Eq for TruncationInfo
Source§impl PartialEq for TruncationInfo
impl PartialEq for TruncationInfo
Source§impl Serialize for TruncationInfo
impl Serialize for TruncationInfo
impl StructuralPartialEq for TruncationInfo
Auto Trait Implementations§
impl Forget for TruncationInfo
impl Freeze for TruncationInfo
impl Move for TruncationInfo
impl RefUnwindSafe for TruncationInfo
impl Send for TruncationInfowhere
RawVecInner: Send,
impl Sync for TruncationInfowhere
RawVecInner: Sync,
impl Unpin for TruncationInfo
impl UnsafeUnpin for TruncationInfo
impl UnwindSafe for TruncationInfowhere
RawVecInner: UnwindSafe,
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