AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Add a PreCheck module to the Auto-Gpt workflow.

Open liaosunny123 opened this issue 2 years ago • 4 comments

Duplicates

  • [X] I have searched the existing issues

Summary 💡

I find that the Auto-Gpt may find many 404 urls.

Examples 🌈

NEXT ACTION:  COMMAND = clone_repository ARGUMENTS = {'repository_url': 'https://github.com/example/repository.git', 'clone_path': '/home/user/repository'}
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM:  Command clone_repository returned: Error: Attempted to access path 'F:\home\user\repository' outside of workspace 'F:\Auto-GPT\auto_gpt_workspace'.

The repo donot exists.

Motivation 🔦

So I think Auto-Gpt may need to add a pre-check module to ensure the url has content instead of accessing them directly, which can accelerate the process. (or at least gpt will go through a wrong clone and a error check.)

liaosunny123 avatar Apr 22 '23 09:04 liaosunny123

I am trying to add this module to Auto-Gpt. Later I will post a PR.

liaosunny123 avatar Apr 22 '23 12:04 liaosunny123

on *nix, wget, curl, lynx should be quite capable of telling you whether the site is available or not. in general, it makes sense to also use the return value of the CLI executable and evaluate that in order to resolve the value to a matching textual description that the LLM can then use afterwards: https://stackoverflow.com/questions/4917871/does-git-return-specific-return-error-codes

0: The clone operation completed successfully. 128: The clone operation failed. This is the most common error code, and it can indicate a variety of errors such as an invalid URL or an authentication failure. 129: The clone operation was canceled by the user, typically by interrupting the process with a keyboard interrupt (Ctrl-C). 130: The clone operation was terminated due to a system signal, such as a termination signal (SIGTERM). 137: The clone operation was terminated due to a memory limit exceeded error (OOM).

Boostrix avatar Apr 30 '23 19:04 Boostrix

I think this process will not make the LLM engaged in. For example, when I using Auto-GPT, I noticed that it will made dir in Linux way (However I was using Windows). It may clone a repo which not exists.
It may browser a web page which not exists.
This situation happens often and it will take a two conversation to solve it. (1: Getting the content and fail. 2: trying to search why it fail or trying again or change the jon task.). Just using program check the available of the content before really carry out it will make the process of LLM carrying task faster, I think.

liaosunny123 avatar May 01 '23 01:05 liaosunny123

I am trying to add this module to Auto-Gpt. Later I will post a PR. @liaosunny123

How is it going? I would be down to spend some time trying to help if you think it could be useful. Probably a bit of language barrier but that's never stopped me. Please reach out if you want to. My profile readme has buttons for my socials--I will respond quickly to discord as I will see it, so if that's an option I prefer that. I know python, Linux/UNIX environments, and AI fairly well. At least I tell myself that...

zudsniper avatar May 01 '23 04:05 zudsniper

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 21:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]