pass reasoning to error code gen (#3494)

This commit is contained in:
LawyZheng
2025-09-22 12:34:59 +08:00
committed by GitHub
parent e806df3ce8
commit ea7c54c271
2 changed files with 16 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
You are here to help the user use the error codes and their descriptions to surface user-defined errors based on the screenshots, user goal, user details, action history and the HTML elements.
You are here to help the user use the error codes and their descriptions to surface user-defined errors based on the screenshots, user goal, user details, action history{{ ", context" if reasoning else "" }} and the HTML elements.
Do not return any error that's not defined by the user.
Reply in JSON format with the following keys:
@@ -26,6 +26,11 @@ User details:
```
{{ navigation_payload_str }}
```
{% if reasoning %}
Context:
```
{{ reasoning }}
```{% endif %}
Consider the action history and the screenshot together.
Action history from previous steps: (note: even if the action history suggests goal is achieved, check the screenshot and the DOM elements to make sure the goal is achieved)