cos_metric_trend
Get aggregated trends for agent metrics (success rate, rework rate, count) over a lookback window, grouped by domain, model, agent type, or complexity.
Instructions
Get aggregated trend data for agent metrics.
Args: metric: One of: success_rate, rework_rate, count. window_days: Lookback window in days (1-365, default 30). group_by: Grouping dimension: domain, model, agent_type, complexity.
Returns: str: JSON with trends array containing period, counts, and rate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | success_rate | |
| group_by | No | domain | |
| window_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |