mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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),
|
error=str(e),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
crewai_event_bus.emit(
|
||||||
|
self,
|
||||||
|
event=LLMCallFailedEvent(
|
||||||
|
error=f"Tool execution error: {str(e)}"
|
||||||
|
),
|
||||||
|
)
|
||||||
return text_response
|
return text_response
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user