Find answers from the community

Updated 2 years ago

Tools

At a glance

The community member is following a blog post on "Building Better Tools" and is encountering a ModuleNotFoundError for the llama_index.tools.base module. Another community member suggests the correct import is llama_index.tools.tool_spec.base. The community member continues to have issues, but eventually resolves them by fixing an indentation error and adding additional imports for requests, urllib, and llama_index.agent.OpenAIAgent. The community members reference a blog post on "Building Better Tools for LLM Agents" as the source of the issue.

Useful resources
Following the "Building Better Tools" recent blog post, and running into a module issue here.
Getting ModuleNotFoundError: No module named 'llama_index.tools.base'
Attachment
Screen_Shot_2023-07-29_at_8.51.04_PM.png
L
s
9 comments
Hmmm I the correct import is llama_index.tools.tool_spec.base
thank you. Continuing to copy-paste from the blog, now it's this:
Oof. Which example/blog is this?
I'm a bit beginner with Python so it may be me, but that no argument error is coming up when I believe I'm following the blog exactly
nvm! indentation error on me sorry
got it working!
these 3 imports were also necessary
Plain Text
import requests
import urllib
from llama_index.agent import OpenAIAgent
Add a reply
Sign up and join the conversation on Discord