Per-root-chat cost breakdown for a single user within a date range. Groups by root_chat_id so forked chats roll up under their root. Only counts assistant-role messages.
(ctx context.Context, arg GetChatCostPerChatParams)
| 344 | // Groups by root_chat_id so forked chats roll up under their root. |
| 345 | // Only counts assistant-role messages. |
| 346 | GetChatCostPerChat(ctx context.Context, arg GetChatCostPerChatParams) ([]GetChatCostPerChatRow, error) |
| 347 | // Per-model cost breakdown for a single user within a date range. |
| 348 | // Only counts assistant-role messages that have a model_config_id. |
| 349 | GetChatCostPerModel(ctx context.Context, arg GetChatCostPerModelParams) ([]GetChatCostPerModelRow, error) |
no outgoing calls