Skip to content

Commit d8ebe61

Browse files
committed
fix(navigator): avoid repeating unsuccessful actions
1 parent 56793df commit d8ebe61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

npiai/core/browser/_navigator.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
- If you are performing a critical action, such as submitting a form to place an order, clicking a "Send" button to send a message, or clicking a "Save" button to save the form, you should set the `action.type` to "confirmation" and ask for user confirmation.
7171
- If you need more information from the user to fulfill the task, such as requesting the user's name and making a choice, you should set the `action.type` to "human-intervention" and wait for user response.
7272
- If the whole task is done, you should set the `action.type` to "done" not call any further tools.
73+
- Avoid repeating the same action multiple times, even if the previous action was unsuccessful. Instead, try to analyze the reason for the failure and take a different approach.
7374
7475
## Response Format
7576

0 commit comments

Comments
 (0)