pub struct ModuleActivation {
pub tools_search_glob: bool,
pub tools_search_content_search: bool,
pub tools_search_list_dir: bool,
pub tools_web_fetch: bool,
pub tools_web_search: bool,
/* private fields */
}Expand description
The resolved activation set for all 35 modules (§5.2 P3: “a resolved
activation set on Config”) — pure HarnessConfig → set, no loop
required (§5.3 risk 2’s testability mitigation). Also carries
tools_search’s three per-tool sub-flags, since crate::tools::ToolRegistry::from_config
needs them to decide which of glob/search/list_dir to register —
and (P4c) tools_web’s two, for web_fetch/web_search.
Fields§
§tools_search_glob: bool[capabilities.tools_search].glob (default true).
tools_search_content_search: bool[capabilities.tools_search].content_search (default true).
tools_search_list_dir: bool[capabilities.tools_search].list_dir (default true).
tools_web_fetch: boolP4c: [capabilities.tools_web].fetch (default true).
tools_web_search: boolP4c: [capabilities.tools_web].search (default true).
Implementations§
Source§impl ModuleActivation
impl ModuleActivation
Sourcepub fn from_harness(hc: &HarnessConfig) -> ModuleActivation
pub fn from_harness(hc: &HarnessConfig) -> ModuleActivation
Compute the activation set from a resolved HarnessConfig (the
output of crate::configfile::resolve’s folding, before Config
materialization).
Sourcepub fn iter(&self) -> impl Iterator<Item = &ModuleId>
pub fn iter(&self) -> impl Iterator<Item = &ModuleId>
Every active module, in ModuleId::ALL order.
Trait Implementations§
Source§impl Clone for ModuleActivation
impl Clone for ModuleActivation
Source§fn clone(&self) -> ModuleActivation
fn clone(&self) -> ModuleActivation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more