Extracting next engine consistently fails
Author: dlculverCreated Oct 30, 2024Updated Apr 26, 2025
When I run the WebAgent class to do a task, I consistently run into the following kind of error:
ValueError: No next engine found in the text: **Thoughts:**
* The current screenshot shows the Google homepage.
* The objective is to find the weather in Los Angeles.
* Since we are on the Google homepage, we can use the search bar to find the weather information.
**Next Engine:** Navigation Engine
**Instruction:** Type 'Los Angeles weather' in the search bar and press Enter.Sometimes this issue is so persistent that even after several retries the error continues. I think this is because the extract_next_engine utility function expects to see things like 'Next engine' and the regular expression search is case sensitive. One option would be to ignore case when doing the regular expression search. I think this should be an easy fix and would also like to volunteer to fix it.
Source: lavague-ai/LaVague