From 54674c16cc9fc39148ea55e7ce8b7c50e61f12e9 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Wed, 30 Oct 2024 01:21:24 +0800 Subject: [PATCH] update prompt to fix terminate issue (#1086) --- skyvern/forge/prompts/skyvern/extract-action.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/prompts/skyvern/extract-action.j2 b/skyvern/forge/prompts/skyvern/extract-action.j2 index 69ee8c3e..156b14a9 100644 --- a/skyvern/forge/prompts/skyvern/extract-action.j2 +++ b/skyvern/forge/prompts/skyvern/extract-action.j2 @@ -11,7 +11,7 @@ Reply in JSON format with the following keys: { "user_goal_stage": str, // A string to describe the reasoning whether user goal has been achieved or not. "user_goal_achieved": bool, // True if the user goal has been completed, otherwise False. - "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_achieved is True. + "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_achieved is True. Output "TERMINATE" action in the "actions" if your plan is to terminate the process. "actions": array // An array of actions. Here's the format of each action: [{ "reasoning": str, // The reasoning behind the action. This reasoning must be user information agnostic. Mention why you chose the action type, and why you chose the element id. Keep the reasoning short and to the point.