Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: capture method name in exception context
Greyson LaLonde4a4c99d8a205
diff --git a/lib/crewai/src/crewai/flow/flow.py b/lib/crewai/src/crewai/flow/flow.pyindex b32321daa..fe31b46d5 100644--- a/lib/crewai/src/crewai/flow/flow.py+++ b/lib/crewai/src/crewai/flow/flow.py@@ -2198,6 +2198,8 @@ class Flow(Generic[T], metaclass=FlowMeta):from crewai.flow.async_feedback.types import HumanFeedbackPendingif isinstance(e, HumanFeedbackPending):+ e.context.method_name = method_name+# Auto-save pending feedback (create default persistence if needed)if self._persistence is None:from crewai.flow.persistence import SQLiteFlowPersistence