1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Agent Monitoring
//!
//! Basic monitoring system for tracking agent utilization, performance, and task completion rates.
//!
//! This module provides lightweight analytics collection for agent systems, tracking:
//! - Agent invocation counts and success rates
//! - Execution duration metrics
//! - Task completion rates by agent type
//! - Performance metrics for agent coordination
//!
//! ## Example
//!
//! ```no_run
//! use do_memory_core::monitoring::{AgentMonitor, AgentMetrics, TaskMetrics};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let monitor = AgentMonitor::new();
//!
//! // Track agent execution
//! let start = std::time::Instant::now();
//! // ... agent work ...
//! let duration = start.elapsed();
//!
//! monitor.record_execution("feature-implementer", true, duration).await;
//!
//! // Get metrics
//! let metrics = monitor.get_agent_metrics("feature-implementer").await.unwrap();
//! println!("Success rate: {:.2}", metrics.success_rate());
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use ;
// Re-export for convenience
pub use AgentType;