pub struct Config {
pub root: Path<'static>,
pub default_agent: Option<String>,
pub agents: BTreeMap<String, AgentConfig>,
pub tools: BTreeMap<String, ToolConfig>,
pub skills: BTreeMap<String, SkillConfig>,
/* private fields */
}Expand description
Fully resolved workspace configuration.
Contains all agents, tools, and skills discovered during Config::load,
together with the parsed rc.conf backing stores.
Fields§
§root: Path<'static>Root directory from which the configuration was loaded.
default_agent: Option<String>Explicit default agent, if one was declared in the agents rc.conf.
agents: BTreeMap<String, AgentConfig>Agent configurations keyed by agent identifier.
tools: BTreeMap<String, ToolConfig>Tool configurations keyed by tool identifier.
skills: BTreeMap<String, SkillConfig>Skill configurations keyed by skill identifier.
Implementations§
Source§impl Config
impl Config
Sourcepub fn load(root: &Path<'_>) -> Result<Self, SError>
pub fn load(root: &Path<'_>) -> Result<Self, SError>
Load a workspace configuration from root.
Reads agents.conf and tools.conf from the given directory, resolves
every agent, tool, and skill referenced in those files, and validates
tool manifests and executables.
§Errors
Returns an error when a required configuration file is missing, a referenced tool executable or manifest cannot be found, or an rc.conf entry is malformed.