Find answers from the community

Updated 4 months ago

Hey everyone, I am looking for a fast

Hey everyone, I am looking for a fast way for a bunch of tool calling llm example agents in Python, that are easy to implement. Was wondering if anyone had access to a repo. Was trying to use llama doc tool/toolkit examples but a lot of it is outdated and having to work more updating it.
W
s
2 comments
Hey there!
Would you mind pointing me towards the outdated tools and examples πŸ™
hi, for example:https://llamahub.ai/l/tools/llama-index-tools-arxiv?from=tools

when I try running this, it saysModuleNotFoundError: No module named 'llama_index.tools.arxiv'

seems like the packages were updated but not able to use the hub as well due to other dependency issues.


when i modify to get the package right:
from llama_hub.tools.arxiv import ArxivToolSpec
from llama_index.agent.openai import OpenAIAgent

tool_spec = ArxivToolSpec()

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("What's going on with the superconductor lk-99")
agent.chat("what are the latest developments in machine learning")


i get this new error File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pymongo/helpers.py", line 238, in _raise_last_write_error
raise DuplicateKeyError(error.get("errmsg"), 11000, error)
pymongo.errors.DuplicateKeyError: E11000 duplicate key error collection: llm_agent_arena.agents index: name_1 dup key: { name: "langchain AskNews" }, full error: {'index': 0, 'code': 11000, 'errmsg': 'E11000 duplicate key error collection: llm_agent_arena.agents index: name_1 dup key: { name: "langchain AskNews" }', 'keyPattern': {'name': 1}, 'keyValue': {'name': 'langchain AskNews'}}
Add a reply
Sign up and join the conversation on Discord