Agent Analytics
Usage, evaluation, and conversation analytics for an agent.
Get all analytics sections of an agent (legacy)
Deprecated legacy endpoint that returns every analytics section in one response. Prefer the per-section endpoints (summary, trends, durations, evaluations, unanswered).
Get the durations analytics section of an agent
Returns `executionDurations` (one point per execution), `nodeDurations` (one point per node) and `errorHotspotExecutions` (recent error executions, not limited to the scatter sample) for the requested window.
Get the evaluations analytics section of an agent
Returns `evaluationDurations`, one point per individual evaluation with its score and duration, grouped by evaluation criteria, for the requested window.
Get insight snapshots per execution of an agent
Returns a map keyed by execution id with the latest conversation insights snapshot produced by each execution in the requested window.
Get the conversation insights analytics section of an agent
Returns `null` when the agent has Insights disabled or no data points configured; otherwise an object with `analyzedSnapshotCount` and one aggregate per configured data point.
Get the summary analytics section of an agent
Returns `summary` (execution KPIs for the window), `statusDistribution` and `executionTypeDistribution`. Filters follow the shared analytics query semantics.
Get the trends analytics section of an agent
Returns `dailyExecutions` (execution counts per day) and `dailyDuration` (duration percentiles per day) for the requested window.
Get the unanswered-threads analytics section of an agent
Pass `forceRefresh=true` to bypass the cached getters and recompute the section.
Poll the latest document insights results of an agent
Returns the latest evaluation results with completion percentage and pagination metadata. `sort` and `dir` follow the insights table sort params; `q` filters rows.