Skip to main content

registry_for

Function registry_for 

Source
pub fn registry_for(
    cfg: &Config,
    loaded: &Plugins,
    workspace: &Path,
    env: EnvFn<'_>,
    problems: &mut Vec<String>,
) -> ToolRegistry
Expand description

The tool registry a configuration produces: built-ins with their policies, the tools of any enabled plugin, the memory tool, the two skill tools, delegate (policy [tools] delegate) and, when a scripts directory can be worked out, script (policy [tools] script), minus everything named in [tools] disabled.

Agent::from_config_with_env and eclipse tools list both call this. That is the whole point of it: a listing built by a second code path would eventually describe a registry the agent does not have.