Skip to main content

Module stats

Module stats 

Source

Modules§

sql

Structs§

SessionAggregate
Aggregate statistics computed from a collection of sessions.

Functions§

aggregate
Aggregate pre-computed stats from every session in the slice.
aggregate_by_model
Group sessions by agent.model and aggregate each group.
aggregate_by_tool
Group sessions by agent.tool and aggregate each group.
count_tool_calls
Count tool calls per tool name across all sessions, returning (tool_name, count) sorted descending.
filter_by_time_range
Filter sessions by a time-range string relative to now.