You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[<ipython-input-14-1f396324b767>](https://localhost:8080/#) in <cell line: 6>()
4
5 # Import the OpenAIChat model and the Agent struct
----> 6 from swarms import Agent, OpenAIChat, SwarmNetwork
7
8 # Load the environment variables
ImportError: cannot import name 'SwarmNetwork' from 'swarms' (/usr/local/lib/python3.10/dist-packages/swarms/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
To solve this bug, we need to update the import statement. The SwarmNetwork class should be imported from swarms.structs instead of directly from swarms . Here's how to fix the import:
from swarms import Agent
from swarm_models import OpenAIChat
from swarms.structs import SwarmNetwork
This change addresses the ImportError by correctly importing SwarmNetwork from the swarms.structs module.
You can reference this change in the following line :
@evelynmitchell@sambhavnoobcoder yeah, the swarm network has been dropped out of production because it's not production grade yet. I will close this error for now.
Upvote & Fund
The text was updated successfully, but these errors were encountered: