Get Comprehensive Collaboration Metrics
GET /api/analytics/collaboration/metrics
Retrieve complete collaboration analytics with consultations and success rates
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Time window in hours
Time window in hours
Responses
Section titled “ Responses ”Successful Response
Aggregated collaboration metrics for analysis.
Provides summary statistics for agent collaboration patterns including consultation rates, response times, and success rates for collaboration analytics and performance optimization.
Fields:
total_events: Total number of collaboration events (non-negative integer)consultation_count: Number of consultation events (non-negative integer)handoff_count: Number of agent handoff events (non-negative integer)collaboration_count: Number of multi-agent collaboration events (non-negative integer)average_response_time: Average response time for consultations in seconds (non-negative)success_rate: Overall collaboration success rate (0.0-1.0)most_active_agents: Most frequently collaborating agents (list of agent IDs)collaboration_pairs: Common agent collaboration pairs with counts (dict mapping pair to count)timestamp: When metrics were calculated (ISO 8601 datetime)
Usage: Used in ODIComprehensiveReport to provide collaboration metrics for pattern analysis and synergy assessment.
JSON Example:
{
"totalEvents": 150,
"consultationCount": 100,
"handoffCount": 30,
"collaborationCount": 20,
"averageResponseTime": 2.5,
"successRate": 0.95,
"mostActiveAgents": ["HAWKEN", "LAGAN", "ORCHESTRATOR"],
"collaborationPairs": {
"HAWKEN-LAGAN": 45,
"LAGAN-ORCHESTRATOR": 30,
"HAWKEN-ORCHESTRATOR": 25
},
"timestamp": "2025-01-30T10:00:00Z"
}object
Total number of collaboration events
Number of consultation events
Number of agent handoff events
Number of multi-agent collaboration events
Average response time for consultations in seconds
Overall collaboration success rate (0.0-1.0)
Most frequently collaborating agents
Common agent collaboration pairs with counts
object
When metrics were calculated
Validation Error