pub struct ArchiveConfig {
pub enabled: bool,
pub threshold_chars: usize,
pub max_age_hours: u64,
pub max_disk_mb: u64,
pub ephemeral: bool,
pub ephemeral_min_tokens: usize,
pub inline_max_bytes: usize,
pub raw_commands: Vec<String>,
pub verbatim_max_tokens: usize,
}Expand description
Settings for the zero-loss compression archive (large tool outputs saved to disk).
Fields§
§enabled: bool§threshold_chars: usize§max_age_hours: u64§max_disk_mb: u64§ephemeral: bool§ephemeral_min_tokens: usizeMinimum output tokens before the ephemeral firewall replaces an inline tool result with a summary + retrieval ref. Outputs below this stay fully inline.
inline_max_bytes: usizeMaximum output size that ctx_shell(inline=true) returns verbatim before
the archive/firewall path takes over.
raw_commands: Vec<String>Programs whose stdout is a dataset (#1260). Head+tail elision does not
compress those — it drops the interior rows that hold the answer — so a
ctx_shell command running one of these passes through verbatim at any
size. Set to [] to disable the passthrough.
verbatim_max_tokens: usizeContext-window guard for implicitly verbatim ctx_shell deliveries
(dataset passthrough #1260, inline=true): above this many output
tokens the content is archived losslessly and delivered as a head+tail
digest with ctx_expand drilldown instead of flooding the calling
agent’s context window. Explicit raw=true/bypass=true and the
LEAN_CTX_MINIMAL escape hatch are never capped. 0 disables the
cap. Env: LEAN_CTX_VERBATIM_MAX_TOKENS (#1541).
Implementations§
Source§impl ArchiveConfig
impl ArchiveConfig
pub fn ephemeral_effective(&self) -> bool
pub fn ephemeral_min_tokens_effective(&self) -> usize
Sourcepub fn verbatim_max_tokens_effective(&self) -> usize
pub fn verbatim_max_tokens_effective(&self) -> usize
Effective context-window cap for implicitly verbatim deliveries (#1541).
pub fn inline_max_bytes_effective(&self) -> usize
Trait Implementations§
Source§impl Clone for ArchiveConfig
impl Clone for ArchiveConfig
Source§impl Debug for ArchiveConfig
impl Debug for ArchiveConfig
Source§impl Default for ArchiveConfig
impl Default for ArchiveConfig
Source§impl<'de> Deserialize<'de> for ArchiveConfigwhere
ArchiveConfig: Default,
impl<'de> Deserialize<'de> for ArchiveConfigwhere
ArchiveConfig: Default,
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>,
Auto Trait Implementations§
impl Forget for ArchiveConfig
impl Freeze for ArchiveConfig
impl Move for ArchiveConfig
impl RefUnwindSafe for ArchiveConfig
impl Send for ArchiveConfigwhere
RawVecInner: Send,
impl Sync for ArchiveConfigwhere
RawVecInner: Sync,
impl Unpin for ArchiveConfig
impl UnsafeUnpin for ArchiveConfig
impl UnwindSafe for ArchiveConfigwhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more