Files
crewAI/lib
Devasy Patel afea8a505a Fix token tracking issues in async tasks and agent metrics
Resolved 4 review comments from Cursor Bugbot:
1. Added token tracking for async tasks in _execute_tasks and _process_async_tasks
2. Fixed task key collision by including task_id in the key
3. Added token tracking for _aexecute_tasks paths (both sync and async)
4. Fixed agent metrics to be keyed by agent_id to handle multiple agents with same role

All async tasks now capture tokens_before/after and attach metrics properly.
Task metrics now use unique keys to prevent overwriting.
Agent metrics properly track separate agents with same role.
2026-01-03 22:24:27 +05:30
..
2025-12-19 15:47:00 -05:00
2025-12-19 15:47:00 -05:00