MCPcopy Create free account
hub / github.com/AI45Lab/Code / build_context_providers

Function build_context_providers

core/src/agent_api/capabilities.rs:276–285  ·  view source on GitHub ↗
(
    opts: &SessionOptions,
    workspace: &Path,
    skill_registry: &SkillRegistry,
)

Source from the content-addressed store, hash-verified

274}
275
276fn build_context_providers(
277 opts: &SessionOptions,
278 workspace: &Path,
279 skill_registry: &SkillRegistry,
280) -> Vec<Arc<dyn ContextProvider>> {
281 let mut providers = opts.context_providers.clone();
282 push_agents_md_context(&mut providers, workspace);
283 push_skill_catalog_context(&mut providers, skill_registry);
284 providers
285}
286
287fn push_agents_md_context(providers: &mut Vec<Arc<dyn ContextProvider>>, workspace: &Path) {
288 let agents_md_path = workspace.join("AGENTS.md");

Callers 1

Calls 3

push_agents_md_contextFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected