pub struct MessageTruncationConfig {
pub max_block_content_bytes: Option<usize>,
pub max_message_bytes: Option<usize>,
pub compressor: Option<Arc<dyn ContentCompressor>>,
}Expand description
Knobs for message-level truncation. None disables the corresponding budget.
Fields§
§max_block_content_bytes: Option<usize>Maximum serialised bytes for a single content field (text / tool result / thinking).
max_message_bytes: Option<usize>Maximum serialised bytes for the entire message.
compressor: Option<Arc<dyn ContentCompressor>>Compression strategy — defaults to TruncationCompressor when None.
Trait Implementations§
Source§impl Clone for MessageTruncationConfig
impl Clone for MessageTruncationConfig
Source§fn clone(&self) -> MessageTruncationConfig
fn clone(&self) -> MessageTruncationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageTruncationConfig
impl Debug for MessageTruncationConfig
Source§impl Default for MessageTruncationConfig
impl Default for MessageTruncationConfig
Source§fn default() -> MessageTruncationConfig
fn default() -> MessageTruncationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageTruncationConfig
impl !RefUnwindSafe for MessageTruncationConfig
impl Send for MessageTruncationConfig
impl Sync for MessageTruncationConfig
impl Unpin for MessageTruncationConfig
impl UnsafeUnpin for MessageTruncationConfig
impl !UnwindSafe for MessageTruncationConfig
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