ralph_workflow/diagnostics/
mod.rs1mod agents;
7mod system;
8
9pub use agents::AgentDiagnostics;
10pub use system::SystemInfo;
11
12use crate::agents::AgentRegistry;
13
14#[derive(Debug)]
16pub struct DiagnosticReport {
17 pub system: SystemInfo,
18 pub agents: AgentDiagnostics,
19}
20
21#[must_use]
26pub fn run_diagnostics(registry: &AgentRegistry) -> DiagnosticReport {
27 let system = SystemInfo::gather();
28 let agents = AgentDiagnostics::test(registry);
29
30 DiagnosticReport { system, agents }
31}