refactor: Simplify LLM call completed event emission

Remove unnecessary LLMCallType conversion when emitting LLMCallCompletedEvent
This commit is contained in:
Lorenze Jay
2025-02-24 11:47:48 -08:00
parent b37fc94936
commit 46ac490009

View File

@@ -410,9 +410,7 @@ class LLM:
"""
crewai_event_bus.emit(
self,
event=LLMCallCompletedEvent(
response=response, call_type=LLMCallType(call_type)
),
event=LLMCallCompletedEvent(response=response, call_type=call_type),
)
def _format_messages_for_provider(