mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 07:38:29 +00:00
feat: Add LLMCallFailedEvent emission for tool execution errors
Enhance error handling by emitting a specific event when tool execution fails during LLM calls
This commit is contained in:
@@ -382,6 +382,12 @@ class LLM:
|
||||
error=str(e),
|
||||
),
|
||||
)
|
||||
crewai_event_bus.emit(
|
||||
self,
|
||||
event=LLMCallFailedEvent(
|
||||
error=f"Tool execution error: {str(e)}"
|
||||
),
|
||||
)
|
||||
return text_response
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user