Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the action history passed into extract-action prompt #186

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Apr 13, 2024

How it looks like after this PR:

[
{
   "action":{
      "action_type":"input_text",
      "description":null,
      "reasoning":"The user needs to search for the entity name \\'acme inc\\' to progress towards their goal. The input field with id 17 is the correct place to input the entity name as it is labeled \\'Entity Name\\'.",
      "element_id":17,
      "file_url":null
   },
   "results":[
      {
         "success":true,
         "exception_type":null,
         "exception_message":null,
         "data":null,
         "step_retry_number":0,
         "step_order":0,
         "javascript_triggered":false,
         "interacted_with_sibling":false,
         "interacted_with_parent":false
      },
      {
         "success":true,
         "exception_type":null,
         "exception_message":null,
         "data":null,
         "step_retry_number":0,
         "step_order":0,
         "javascript_triggered":false,
         "interacted_with_sibling":false,
         "interacted_with_parent":false
      }
   ]
},
{
   "action":{
      "action_type":"click",
      "description":null,
      "reasoning":"After inputting the entity name, the user needs to click the \\'Search\\' button to perform the search. The button with id 19 is labeled \\'Search\\' and is the correct element to click to initiate the search.",
      "element_id":19,
      "file_url":null
   },
   "results":[
      {
         "success":true,
         "exception_type":null,
         "exception_message":null,
         "data":null,
         "step_retry_number":0,
         "step_order":0,
         "javascript_triggered":false,
         "interacted_with_sibling":false,
         "interacted_with_parent":false
      }
   ]
}
]

How it looks like after this PR:
```
[
   {
      "action":{
         "action_type":"input_text",
         "description":null,
         "reasoning":"The user needs to search for the entity name \\'acme inc\\' to progress towards their goal. The input field with id 17 is the correct place to input the entity name as it is labeled \\'Entity Name\\'.",
         "element_id":17,
         "file_url":null
      },
      "results":[
         {
            "success":true,
            "exception_type":null,
            "exception_message":null,
            "data":null,
            "step_retry_number":0,
            "step_order":0,
            "javascript_triggered":false,
            "interacted_with_sibling":false,
            "interacted_with_parent":false
         },
         {
            "success":true,
            "exception_type":null,
            "exception_message":null,
            "data":null,
            "step_retry_number":0,
            "step_order":0,
            "javascript_triggered":false,
            "interacted_with_sibling":false,
            "interacted_with_parent":false
         }
      ]
   },
   {
      "action":{
         "action_type":"click",
         "description":null,
         "reasoning":"After inputting the entity name, the user needs to click the \\'Search\\' button to perform the search. The button with id 19 is labeled \\'Search\\' and is the correct element to click to initiate the search.",
         "element_id":19,
         "file_url":null
      },
      "results":[
         {
            "success":true,
            "exception_type":null,
            "exception_message":null,
            "data":null,
            "step_retry_number":0,
            "step_order":0,
            "javascript_triggered":false,
            "interacted_with_sibling":false,
            "interacted_with_parent":false
         }
      ]
   }
]
```
@ykeremy ykeremy force-pushed the ykeremy/fix-action-history-in-prompt branch from 37af9c8 to 0797d58 Compare April 13, 2024 07:43
@ykeremy ykeremy added the sync label Apr 13, 2024
@ykeremy ykeremy merged commit 871de94 into main Apr 13, 2024
2 checks passed
@ykeremy ykeremy deleted the ykeremy/fix-action-history-in-prompt branch April 13, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant