pub struct SubAgentContextConfig {
pub todo_store: Option<Arc<TodoStore>>,
pub context_recall_store: Option<Arc<ContextRecallStore>>,
pub context_window_tokens: Option<u32>,
pub replan_on_verify_fail: bool,
}Expand description
Per-sub-agent context-management wiring (multi-agent enablement).
All fields are opt-in: Default reproduces today’s behavior exactly. The
caller creates the stores, builds the sub-agent’s tools FROM them, and sets
the SAME stores here; the orchestrator forwards each to the sub-agent’s
AgentRunnerBuilder. The
session-prune config that pairs with restore-on-demand reuses the existing
SubAgentConfig::session_prune_config (a gentle default is applied when a
recall store is set but no prune config is).
Fields§
§todo_store: Option<Arc<TodoStore>>Shared todo store the sub-agent recites at the context tail each turn
(long-horizon recitation). MUST be the same store backing the
sub-agent’s todowrite/todoread tools.
context_recall_store: Option<Arc<ContextRecallStore>>Per-run recall store for restore-on-demand. MUST be the same store
passed into the sub-agent’s BuiltinToolsConfig.context_recall_store.
context_window_tokens: Option<u32>Model context window (tokens) for the proactive compaction backstop.
replan_on_verify_fail: boolWhen true, a RED verify blocks the sub-agent’s natural completion (bounded replan).
Trait Implementations§
Source§impl Clone for SubAgentContextConfig
impl Clone for SubAgentContextConfig
Source§fn clone(&self) -> SubAgentContextConfig
fn clone(&self) -> SubAgentContextConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more