Previously sync_agent was called without db in all 3 agent endpoints, so usage_stats was None and tokens/conversations/unique_users were never sent to the collector (showing N/A in AgentHub). Now sync_agent opens its own AsyncSession when no db is passed, avoiding the closed request-scoped session issue. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agent_collector.py | ||
| agent_usage.py | ||