kyegomez / swarms

The Enterprise-Grade Production-Ready Multi-Agent Orchestration Framework Join our Community: https://discord.com/servers/agora-999382051935506503
https://docs.swarms.world
GNU Affero General Public License v3.0
1.77k stars 239 forks source link

[BUG] 'Agent' object has no attribute 'all_gpus' #639

Open doncat99 opened 4 hours ago

doncat99 commented 4 hours ago

Describe the bug A clear and concise description of what the bug is.

In swarms.structs.agent.py: Agent Class, class member "all_gpus" is not declare in init,

which leads to member function un() error. due to this following line of code all_gpus = all_gpus or self.all_gpus

To Reproduce Steps to reproduce the behavior:

in example.py:

user has to add following extra line of code to make program work: agent.all_gpus = False

result = agent.run( "How can I establish a ROTH IRA to buy stocks and get a tax break? What are the criteria. Create a report on this question.", all_cores=True, )

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Upvote & Fund

Fund with Polar

github-actions[bot] commented 3 hours ago

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.