From 46ac490009673d2b58bfd8a5f2a542a0ae10c7d6 Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Mon, 24 Feb 2025 11:47:48 -0800 Subject: [PATCH] refactor: Simplify LLM call completed event emission Remove unnecessary LLMCallType conversion when emitting LLMCallCompletedEvent --- src/crewai/llm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crewai/llm.py b/src/crewai/llm.py index 3607fa831..1165ab354 100644 --- a/src/crewai/llm.py +++ b/src/crewai/llm.py @@ -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(