refactor: Update LLM event response type to support Any

This commit is contained in:
Lorenze Jay
2025-02-24 11:44:38 -08:00
parent 8434a11b10
commit b37fc94936
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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