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

[BUG] ToolAgent example #510

Closed
evelynmitchell opened this issue Jun 25, 2024 · 2 comments
Closed

[BUG] ToolAgent example #510

evelynmitchell opened this issue Jun 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@evelynmitchell
Copy link
Contributor

evelynmitchell commented Jun 25, 2024

This is likely fixable by modifying the swarms init.py

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-9-715acb48d350>](https://localhost:8080/#) in <cell line: 5>()
      3 
      4 from swarms import ToolAgent
----> 5 from swarms.utils.json_utils import base_model_to_json
      6 
      7 # Load the pre-trained model and tokenizer

ModuleNotFoundError: No module named 'swarms.utils.json_utils'

---------------------------------------------------------------------------
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.
Fund with Polar
@Occupying-Mars
Copy link
Collaborator

the example in the readme is wrong for where you are trying to use it. this pr should fix it and the actual import is from swarms.tools.json_utils import base_model_to_json

@evelynmitchell
Copy link
Contributor Author

The merged PR 655 fixed this. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants