mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +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)}")
|
logging.error(f"LiteLLM call failed: {str(e)}")
|
||||||
raise
|
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.
|
"""Handle the events for the LLM call.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class LLMCallCompletedEvent(CrewEvent):
|
|||||||
"""Event emitted when a task completes"""
|
"""Event emitted when a task completes"""
|
||||||
|
|
||||||
type: str = "llm_call_completed"
|
type: str = "llm_call_completed"
|
||||||
response: str
|
response: Any
|
||||||
call_type: LLMCallType
|
call_type: LLMCallType
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user