pub enum Truncation {
None,
Middle,
}Expand description
Whether tool output content was shortened to fit the token limit.
Exhaustive on purpose: content was shortened or it was not.
Variants§
None
The content is the tool’s full output.
Middle
The content was replaced by head + notice + tail; the full output spilled to an artifact when a store was available.
Trait Implementations§
Source§impl Clone for Truncation
impl Clone for Truncation
impl Copy for Truncation
Source§impl Debug for Truncation
impl Debug for Truncation
Source§impl<'de> Deserialize<'de> for Truncation
impl<'de> Deserialize<'de> for Truncation
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 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