optimize max steps failure reason for task v2 (#2225)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
The user is performing tasks on the webpage to achieve the user goal. The user breaks the goal down into several mini plans to execute step by step. You are here to help the user summarize the main reason why the user goal has not been achieved within {{ block_cnt }} mini plans. This summary should be based on the provided screenshot, the user goal and the results of each mini plan.
|
||||
|
||||
Make sure to ONLY return the JSON object in this format with no additional text before or after it:
|
||||
```json
|
||||
{
|
||||
"page_info": str, // Think step by step. Describe all the useful information in the page related to the user goal.
|
||||
"reasoning": str, // Think step by step. Describe the reason you summarized based on 'page_info', screenshots, user goal and result of mini plans. Keep the reasoning short and to the point.
|
||||
}
|
||||
|
||||
User Goal:
|
||||
{{ navigation_goal }}
|
||||
|
||||
Mini plans and the results:
|
||||
{% for each_block in history %}{{ each_block }}
|
||||
{% endfor %}
|
||||
|
||||
Current datetime, ISO format:
|
||||
```
|
||||
{{ local_datetime }}
|
||||
```
|
||||
@@ -61,11 +61,13 @@ class ThoughtType(StrEnum):
|
||||
metadata = "metadata"
|
||||
user_goal_check = "user_goal_check"
|
||||
internal_plan = "internal_plan"
|
||||
failure_describe = "failure_describe"
|
||||
|
||||
|
||||
class ThoughtScenario(StrEnum):
|
||||
generate_plan = "generate_plan"
|
||||
user_goal_check = "user_goal_check"
|
||||
failure_describe = "failure_describe"
|
||||
summarization = "summarization"
|
||||
generate_metadata = "generate_metadata"
|
||||
extract_loop_values = "extract_loop_values"
|
||||
|
||||
Reference in New Issue
Block a user