MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / collect

Function collect

atomic-cli/src/commands/diagnostics/collect.rs:517–528  ·  view source on GitHub ↗

Collect the report from the real environment.

()

Source from the content-addressed store, hash-verified

515
516/// Collect the report from the real environment.
517pub(crate) fn collect() -> Report {
518 let registry = AgentRegistry::with_defaults();
519 let probes = registry
520 .iter()
521 .map(|agent| AgentProbe {
522 name: agent.name().to_string(),
523 display_name: agent.display_name().to_string(),
524 })
525 .collect::<Vec<_>>();
526 let packaged = atomic_agent::integrations::registered_integrations();
527 collect_from(&Sources::from_process(), &probes, &packaged)
528}
529
530/// Collect the report from explicit sources: `probes` are the agent
531/// adapters, `packaged` the agents with an integration package.

Callers 1

collect_fromFunction · 0.70

Calls 4

collect_fromFunction · 0.85
iterMethod · 0.45
nameMethod · 0.45
display_nameMethod · 0.45

Tested by

no test coverage detected