Compare Time Windows
compare_time_windowsCompare LLM usage metrics between two time windows to identify changes in request and token counts, such as week-over-week trends or before/after a deployment.
Instructions
Compare aggregated LLM usage metrics between two time windows.
Runs the same usage aggregation for both ranges and returns the delta - useful for "this week vs last week" or "before/after a deploy" style comparisons of request/token counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of traces to analyze per range (default: 1000) | |
| range_a_end | No | Range A end time in ISO 8601 format | |
| range_b_end | No | Range B end time in ISO 8601 format | |
| service_name | No | Filter by service name (applied to both ranges) | |
| gen_ai_system | No | Filter by LLM provider (applied to both ranges) | |
| range_a_start | No | Range A start time in ISO 8601 format | |
| range_b_start | No | Range B start time in ISO 8601 format | |
| gen_ai_request_model | No | Filter by requested model name (applied to both ranges) | |
| gen_ai_response_model | No | Filter by actual model used (applied to both ranges) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |