Returns paginated sessions with aggregated metadata, token counts, and the most recent user prompt. A "session" is a logical grouping of interceptions that share the same session_id (set by the client). Pagination-first strategy: identify the page of sessions cheaply via a single GROUP BY scan, the
(ctx context.Context, arg ListAIBridgeSessionsParams)
| 1054 | // single GROUP BY scan, then do expensive lateral joins (tokens, prompts, |
| 1055 | // first-interception metadata) only for the ~page-size result set. |
| 1056 | ListAIBridgeSessions(ctx context.Context, arg ListAIBridgeSessionsParams) ([]ListAIBridgeSessionsRow, error) |
| 1057 | ListAIBridgeTokenUsagesByInterceptionIDs(ctx context.Context, interceptionIds []uuid.UUID) ([]AIBridgeTokenUsage, error) |
| 1058 | ListAIBridgeToolUsagesByInterceptionIDs(ctx context.Context, interceptionIds []uuid.UUID) ([]AIBridgeToolUsage, error) |
| 1059 | ListAIBridgeUserPromptsByInterceptionIDs(ctx context.Context, interceptionIds []uuid.UUID) ([]AIBridgeUserPrompt, error) |
no outgoing calls
no test coverage detected