pub struct OverflowConfig {
pub threshold: usize,
pub retention_days: u64,
pub max_overflow_bytes: usize,
pub max_per_call_override: usize,
}Expand description
Configuration for large tool response offload to SQLite.
Fields§
§threshold: usizeCharacter threshold above which tool output is offloaded. Default: 50000.
retention_days: u64Days to retain offloaded entries. Default: 7.
max_overflow_bytes: usizeMaximum bytes per overflow entry. 0 means unlimited. Default: 10 MiB.
max_per_call_override: usizeHard ceiling (in chars) on a per-call result-size override that an MCP
server may request via _meta["zeph/maxResultSizeChars"]. The server’s
request is clamped to min(requested, max_per_call_override) and may only
raise the effective limit above threshold, never lower
it. A value at or below threshold disables per-call overrides entirely.
Raising the effective limit also enlarges how much of that call’s output
counts against the turn’s context budget, not just summarizer cost.
Default: 131072 (128 KiB).
Note: unlike max_overflow_bytes, 0 here
does NOT mean “unlimited” — it disables overrides (the clamp floors at
threshold).
Note: for sanitized (external/untrusted, :-qualified) MCP output, the effective
in-context ceiling under default config is actually zeph-sanitizer’s
ContentIsolationConfig::max_content_size (65536 bytes by default), which is
smaller than this field’s 131072-char default and caps what reaches the LLM
downstream of this clamp — a fail-safe (lower, not higher) bound, not a hole.
Trait Implementations§
Source§impl Clone for OverflowConfig
impl Clone for OverflowConfig
Source§fn clone(&self) -> OverflowConfig
fn clone(&self) -> OverflowConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more