mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 10:03:37 +00:00
`agent_execution_started` and `agent_execution_completed` are in `complex_events`, so `_build_event_data` hand-builds their payloads. Those payloads shipped only agent_role/goal/backstory and dropped two required bus fields: `AgentExecutionStartedEvent.task_prompt` and `AgentExecutionCompletedEvent.output`. A trace therefore said which agent ran but not what it was asked or what it answered. Add `task_prompt` to the started payload and `output` to the completed one, whole and untruncated. No new event types, no TraceEvent change. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Vidit Ostwal <110953813+Vidit-Ostwal@users.noreply.github.com>