pub struct SessionPruneConfigToml {
pub keep_recent_n: usize,
pub pruned_tool_result_max_bytes: usize,
pub preserve_task: bool,
}Expand description
TOML representation of session pruning configuration.
Fields§
§keep_recent_n: usizeNumber of recent message pairs to keep at full fidelity. Default: 2.
pruned_tool_result_max_bytes: usizeMaximum bytes for a pruned tool result. Default: 200.
preserve_task: boolWhether to preserve the first user message (task). Default: true.
Implementations§
Trait Implementations§
Source§impl Clone for SessionPruneConfigToml
impl Clone for SessionPruneConfigToml
Source§fn clone(&self) -> SessionPruneConfigToml
fn clone(&self) -> SessionPruneConfigToml
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 moreSource§impl Debug for SessionPruneConfigToml
impl Debug for SessionPruneConfigToml
Source§impl<'de> Deserialize<'de> for SessionPruneConfigToml
impl<'de> Deserialize<'de> for SessionPruneConfigToml
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
Auto Trait Implementations§
impl Freeze for SessionPruneConfigToml
impl RefUnwindSafe for SessionPruneConfigToml
impl Send for SessionPruneConfigToml
impl Sync for SessionPruneConfigToml
impl Unpin for SessionPruneConfigToml
impl UnsafeUnpin for SessionPruneConfigToml
impl UnwindSafe for SessionPruneConfigToml
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