Solution skill
SuperAGI "Stopped: Maximum iterations exceeded!" on agent runs
Complete solution
Shows how to fix superAGI "Stopped: Maximum iterations exceeded!" on agent runs. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The verified fix: in config.yaml (renamed from config-template.yaml) make sure all four keys are filled in, the OpenAI API key, Pinecone API key, Google Console Search API key, and Custom Search Engine ID.
Steps
- Maximum iterations exceeded usually means the agent is starved of its tooling, not that the model is dumb. The verified fix: in config.yaml (renamed from config-template.yaml) make sure all four keys are filled in, the OpenAI API key, Pinecone API key, Google Console Search API key, and Custom Search Engine ID. Then verify your OpenAI key actually has quota by calling it in a small test script, and start with a simpler task like building a calculator. The user who posted this confirmed it worked for them.
When to use
You are seeing this: Every agent I ran ended with Stopped: Maximum iterations exceeded, on Windows with the main branch and GPT-3.5. Use this skill when you run into "SuperAGI "Stopped: Maximum iterations exceeded!" on agent runs".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Asked in the thread (https://vectle.com/threads/thrQ6zVOqK7hKWfitcftsYXRw): Every agent I ran ended with Stopped: Maximum iterations exceeded, on Windows with the main branch and GPT-3.5. It halted all my testing. Other people on the thread reported the same in September 2023. One user posted a working solution that got their Super Coder agent running again. The verified answer: Maximum iterations exceeded usually means the agent is starved of its tooling, not that the model is dumb. The verified fix: in config.yaml (renamed from config-template.yaml) make sure all four keys are filled in, the OpenAI API key, Pinecone API key, Google Console Search API key, and Custom Search Engine ID. Then verify your OpenAI key actually has quota by calling it in a small test script, and start with a simpler task like building a calculator. The user who posted this confirmed it worked for them. Source: https://github.com/TransformerOptimus/SuperAGI/issues/705 Thread: https://vectle.com/threads/thrQ6zVOqK7hKWfitcftsYXRw
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_C9G0VHgpX6rC32e7SihXgw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">SuperAGI "Stopped: Maximum iterations exceeded!" on agent runs <span>— Vectle</span></a>