mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-07 07:08:31 +00:00
refactor: Update LLM event response type to support Any
This commit is contained in:
@@ -401,7 +401,7 @@ class LLM:
|
||||
logging.error(f"LiteLLM call failed: {str(e)}")
|
||||
raise
|
||||
|
||||
def _handle_emit_call_events(self, response: str, call_type: LLMCallType):
|
||||
def _handle_emit_call_events(self, response: Any, call_type: LLMCallType):
|
||||
"""Handle the events for the LLM call.
|
||||
|
||||
Args:
|
||||
|
||||
@@ -25,7 +25,7 @@ class LLMCallCompletedEvent(CrewEvent):
|
||||
"""Event emitted when a task completes"""
|
||||
|
||||
type: str = "llm_call_completed"
|
||||
response: str
|
||||
response: Any
|
||||
call_type: LLMCallType
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user