From ce2d605f98ccd9858cd96789b80a834f53055c5c Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 17 Jul 2024 11:28:25 -0700 Subject: [PATCH] delete unnecessary newline in prompt (#609) --- skyvern/forge/prompts/skyvern/extract-action.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skyvern/forge/prompts/skyvern/extract-action.j2 b/skyvern/forge/prompts/skyvern/extract-action.j2 index 6cb96b0c..ed3e61e9 100644 --- a/skyvern/forge/prompts/skyvern/extract-action.j2 +++ b/skyvern/forge/prompts/skyvern/extract-action.j2 @@ -35,8 +35,8 @@ Reply in JSON format with the following keys: {% endif %} }], } - {% if action_history %} + Consider the action history from the last step and the screenshot together, if actions from the last step don't yield positive impact, try other actions or other action combinations. {% endif %} @@ -51,12 +51,11 @@ User goal: ``` {{ navigation_goal }} ``` - {% if error_code_mapping_str %} + Use the error codes and their descriptions to surface user-defined errors. Do not return any error that's not defined by the user. User defined errors: {{ error_code_mapping_str }} {% endif %} - {% if data_extraction_goal %} User Data Extraction Goal: