mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-09 12:38:14 +00:00
chore: remove unnecessary comments in _build_event_data
This commit is contained in:
@@ -818,7 +818,6 @@ class TraceCollectionListener(BaseEventListener):
|
||||
if event_type == "crew_kickoff_started":
|
||||
return self._build_crew_started_data(event)
|
||||
|
||||
# Complex events with custom projections (specific field shapes for AMP)
|
||||
if event_type == "task_started":
|
||||
task_name = event.task.name or event.task.description
|
||||
task_display_name = (
|
||||
@@ -867,7 +866,6 @@ class TraceCollectionListener(BaseEventListener):
|
||||
if event_type == "llm_call_completed":
|
||||
return safe_serialize_to_dict(event, context=_TRACE_CONTEXT)
|
||||
|
||||
# All other events: field serializers handle the heavy lifting
|
||||
return safe_serialize_to_dict(event, context=_TRACE_CONTEXT)
|
||||
|
||||
def _build_crew_started_data(self, event: Any) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user