devika icon indicating copy to clipboard operation
devika copied to clipboard

Addition of web search feature for better error resolution and new feature implementation

Open obliviousz opened this issue 1 year ago • 8 comments

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 redirecting stdout to stderr. 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.

obliviousz avatar Apr 06 '24 17:04 obliviousz

Here is a video of the same (here although error was hardcoded and browser opening was hardcoded just to show)

demo.webm

obliviousz avatar Apr 06 '24 18:04 obliviousz

Requesting your review @ARajgor

obliviousz avatar Apr 07 '24 11:04 obliviousz

thanks bro

Ahmet0691 avatar Apr 08 '24 16:04 Ahmet0691

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

obliviousz avatar Apr 09 '24 09:04 obliviousz

Added web search functionality for feature addition and tested it too.

obliviousz avatar Apr 09 '24 12:04 obliviousz

Not sure about your changes... But you should take browser thing from browser and search file instead re implementing in every files.

ARajgor avatar Apr 12 '24 03:04 ARajgor

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.

obliviousz avatar Apr 12 '24 06:04 obliviousz

looks good to me.

ARajgor avatar Apr 14 '24 13:04 ARajgor