Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless loop of trying to load a bad url. #3444

Closed
1 task done
codearranger opened this issue Apr 28, 2023 · 5 comments
Closed
1 task done

Endless loop of trying to load a bad url. #3444

codearranger opened this issue Apr 28, 2023 · 5 comments
Labels
AI model limitation Not related to AutoGPT directly. function: browse Stale

Comments

@codearranger
Copy link

codearranger commented Apr 28, 2023

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Docker

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-4

Steps to reproduce 🕹

This just occasionally happens.

Current behavior 😯

It attempts to load a bad url endlessly over and over again. See log below

Expected behavior 🤔

It should return the error back to the requesting agent so that it can correct it's mistake

Your prompt 📝

# Paste your prompt here

Your Logs 📒

Error: The following AI output couldn't be converted to a JSON:
  Please execute the "google" command with the argument "input": "popular self-help and growth book topics". This should give us a list of potential book topics to explore.
NEXT ACTION:  COMMAND = browse_website ARGUMENTS = {'url': '<website_url>', 'question': '<what_you_want_to_find_on_website>'}
SYSTEM:  Command browse_website returned: Error: Message: invalid argument (Session info: headless chrome=112.0.5615.138) Stacktrace: #0 0x55adbc85ffe3 <unknown> #1 0x55adbc59ebc1 <unknown> #2 0x55adbc589446 <unknown> #3 0x55adbc5877f3 <unknown> #4 0x55adbc587c3d <unknown> #5 0x55adbc5a0b16 <unknown> #6 0x55adbc6158c5 <unknown> #7 0x55adbc5fc8c2 <unknown> #8 0x55adbc615232 <unknown> #9 0x55adbc5fc693 <unknown> #10 0x55adbc5cf03a <unknown> #11 0x55adbc5d017e <unknown> #12 0x55adbc821dbd <unknown> #13 0x55adbc825c6c <unknown> #14 0x55adbc82f4b0 <unknown> #15 0x55adbc826d63 <unknown> #16 0x55adbc7f9c35 <unknown> #17 0x55adbc84a138 <unknown> #18 0x55adbc84a2c7 <unknown> #19 0x55adbc858093 <unknown> #20 0x7fce693a2ea7 start_thread

@k-boikov k-boikov added AI model limitation Not related to AutoGPT directly. function: browse labels Apr 28, 2023
@Boostrix
Copy link
Contributor

Boostrix commented Apr 30, 2023

there are several situations where the script may end up looping unnecessarily, e.g.: #1591

Given the open-ended nature of the problem, the "solution" might be to keep track of loops by incrementing a counter whenever an identical invocation has been previously executed (think of it like a hash of all arguments), if that number keeps growing - the script got clearly stuck, and it should consider interruption the loop and probably ask for human feedback.

@zudsniper
Copy link

zudsniper commented Apr 30, 2023 via email

@Boostrix
Copy link
Contributor

Boostrix commented Apr 30, 2023

I would have thought of it like a stack that is incremented/decremented as needed, and whenever the arguments are the same as before (just hash all args together), you would automatically be tracking the number of identical/redundant invocations. Obviously, it would also be interesting if the LLM response keeps being the same, because then you literally want to bail out

more generally, a loop/task that repeatedly doesn't yield any useful result, should probably trigger an experimentation mode, where the agent begins exploring the solution space, to come up with a few alternatives to accomplish its goal and see which of these are feasible (probably by being constrained via "quotas" while exploring the space: #3466 ).

This could then be a "research" phase, which could be restricted to xx minutes or xx API tokens (USD) etc

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

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 github-actions bot added the Stale label Sep 6, 2023
@github-actions
Copy link
Contributor

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI model limitation Not related to AutoGPT directly. function: browse Stale
Projects
None yet
Development

No branches or pull requests

4 participants