-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
ValueError: Agents must be provided. [BUG] #497
Comments
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
@Veanir hey excuse, me think i just fixed it, try upgrading and then let me know: |
I set up a colab notebook replicator with the latest swarms.
If interrupted before running out of memory I get;
I'll dig in a bit more. |
Yea, seems like infinite loop to me # For each agent in the pool, run it on it's own thread
if agents is not None:
for agent in agents:
self.agents.append(agent) |
Ok, I think I figured this out. This code is recursively adding agents to agents, and so will never stop, and will oom.
|
@Veanir @evelynmitchell i've tried fixing it, thanks good catch. try upgrading now! |
Describe the bug
BaseSwarm class throws value error when instantiating SwarmNetwork when using provided Swarm Network example.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Additional context
Python 3.12.2
swarms installed via pip
Upvote & Fund
The text was updated successfully, but these errors were encountered: