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