revert #2154 - fix complete action bug (#3859)

This commit is contained in:
LawyZheng
2025-10-30 15:33:26 +08:00
committed by GitHub
parent 76de33edbd
commit 5ec885ddd1
2 changed files with 3 additions and 7 deletions

View File

@@ -769,6 +769,9 @@ async def generate_cua_fallback_actions(
LOG.info("Fallback action response", action_response=action_response)
skyvern_action_type = action_response.get("action")
useful_information = action_response.get("useful_information")
# use 'other' action as fallback in the 'cua-fallback-action' prompt
# it can avoid LLM returning unreasonable actions, and fallback to use 'wait' action in agent instead
action = WaitAction(
seconds=5,
reasoning=reasoning,