Skip to content

Commit 1ebd8a5

Browse files
authored
iframe submit recognization (#628)
1 parent 858d600 commit 1ebd8a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

skyvern/forge/agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ async def _get_action_results(self, task: Task) -> str:
10731073
],
10741074
}
10751075
for action, results in actions_and_results
1076-
if len(results) > 0 and not results[-1].success
1076+
if len(results) > 0
10771077
]
10781078
)
10791079

skyvern/forge/prompts/skyvern/extract-action-claude3-sonnet.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you see a popup in the page screenshot, prioritize actions on the popup.
1010
Reply in JSON format with the following keys:
1111
{
1212
"user_goal_achieved": str, // A string that describes if user goal has been completed with reasoning.
13-
"action_plan": str, // A string that describes the plan of actions you're going to take. Be specific and to the point. Use this as a quick summary of the actions you're going to take, and what order you're going to take them in, and how that moves you towards your overall goal. "COMPLETE" if user goal has been achieved.
13+
"action_plan": str, // A string that describes the plan of actions you're going to take. Be specific and to the point. Use this as a quick summary of the actions you're going to take, and what order you're going to take them in, and how that moves you towards your overall goal. Output "COMPLETE" action in the "actions" if user goal has been achieved.
1414
"actions": array // An array of actions. Here's the format of each action:
1515
[{
1616
"reasoning": str, // The reasoning behind the action. Be specific, referencing any user information and their fields and element ids in your reasoning. Mention why you chose the action type, and why you chose the element id. Keep the reasoning short and to the point.

skyvern/forge/prompts/skyvern/extract-action.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you see a popup in the page screenshot, prioritize actions on the popup.
1010
Reply in JSON format with the following keys:
1111
{
1212
"user_goal_achieved": str, // A string that describes if user goal has been completed with reasoning.
13-
"action_plan": str, // A string that describes the plan of actions you're going to take. Be specific and to the point. Use this as a quick summary of the actions you're going to take, and what order you're going to take them in, and how that moves you towards your overall goal. "COMPLETE" if user goal has been achieved.
13+
"action_plan": str, // A string that describes the plan of actions you're going to take. Be specific and to the point. Use this as a quick summary of the actions you're going to take, and what order you're going to take them in, and how that moves you towards your overall goal. Output "COMPLETE" action in the "actions" if user goal has been achieved.
1414
"actions": array // An array of actions. Here's the format of each action:
1515
[{
1616
"reasoning": str, // The reasoning behind the action. Be specific, referencing any user information and their fields and element ids in your reasoning. Mention why you chose the action type, and why you chose the element id. Keep the reasoning short and to the point.

0 commit comments

Comments
 (0)