Addition of web search feature for better error resolution and new feature implementation
Enhancements in this PR include:
- Added web search functionality to the error resolution process in
runner.py, triggered when the AI identifies unsolvable errors. This enhancement is crucial as error complexity varies dynamically, necessitating external resources for resolution. - Modified
command_output = process.stdout.decode('utf-8')to capture error messages accurately by redirectingstdouttostderr. Previously, blank error strings were being returned which was not at all helpful for the AI and it had to guess from the code itself.
Here is a video of the same (here although error was hardcoded and browser opening was hardcoded just to show)
Requesting your review @ARajgor
thanks bro
I added an Error analyzer agent because for "bug" and "run" both we needed similar function error analyzer, plus we cannot import Agent into them due to circular dependency, hence it was best to create another Agent called Error Analyzer which analyzes the error and solves the error either by itself or through net what ever AI feels is best. This error analyzer could be used other places too I feel and hence an Error Analyzer agent was important
Added web search functionality for feature addition and tested it too.
Not sure about your changes... But you should take browser thing from browser and search file instead re implementing in every files.
Hey. Did I write any code that is repeating anything from the browser or search? I couldn't find out. Please do point out and I'll fix. Thanks.
looks good to me.