Files
crewAI/lib
Greyson LaLonde b6b97e479e fix: convert AgentAction to AgentFinish in finalize instead of skipping
When the flow-based AgentExecutor reaches finalize() with an AgentAction
still in current_answer (e.g. after max iterations or all todos complete),
the previous code returned "skipped" which left invoke() with a non-AgentFinish
answer, raising RuntimeError('Agent execution ended without reaching a final
answer.'). Now we convert the AgentAction to AgentFinish using its result or
text, preventing the crash.
2026-04-03 05:46:11 +08:00
..
2026-04-02 22:16:05 +08:00