add action history to action block prompt (#4481)

This commit is contained in:
LawyZheng
2026-01-19 17:15:55 +08:00
committed by GitHub
parent b16631f37d
commit d642f351b3
4 changed files with 24 additions and 4 deletions

View File

@@ -40,7 +40,12 @@ HTML elements from `{{ current_url }}`:
```
{{ elements }}
```
{% if action_history %}
Consider the action history from the previous steps and the screenshot together, if actions from the previous steps don't yield positive impact, try to take an action on a different element.
Action history from previous steps:
```
{{ action_history }}
```{% endif %}
Current datetime, ISO format:
```
{{ local_datetime }}

View File

@@ -46,7 +46,12 @@ HTML elements from `{{ current_url }}`:
```
{{ elements }}
```
{% if action_history %}
Consider the action history from the previous steps and the screenshot together, if actions from the previous steps don't yield positive impact, try to take an action on a different element.
Action history from previous steps:
```
{{ action_history }}
```{% endif %}
Current datetime, ISO format:
```
{{ local_datetime }}

View File

@@ -47,7 +47,12 @@ HTML elements from `{{ current_url }}`:
```
{{ elements }}
```
{% if action_history %}
Consider the action history from the previous steps and the screenshot together, if actions from the previous steps don't yield positive impact, try to take an action on a different element.
Action history from previous steps:
```
{{ action_history }}
```{% endif %}
Current datetime, ISO format:
```
{{ local_datetime }}

View File

@@ -34,7 +34,12 @@ HTML elements from `{{ current_url }}`:
```
{{ elements }}
```
{% if action_history %}
Consider the action history from the previous steps and the screenshot together, if actions from the previous steps don't yield positive impact, try to take an action on a different element.
Action history from previous steps:
```
{{ action_history }}
```{% endif %}
Current datetime, ISO format:
```
{{ local_datetime }}