add action history to action block prompt (#4481)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user