AutoGPT
AutoGPT copied to clipboard
Add a PreCheck module to the Auto-Gpt workflow.
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.)
I am trying to add this module to Auto-Gpt. Later I will post a PR.
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).
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.
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...
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.
This issue was closed automatically because it has been stale for 10 days with no activity.