-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Call Tool Error: StructuredTool._run() missing 1 required #924
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
Comments
I am having the same issue |
Same here. I'm using tools from llamaindex as in the documentation |
+1, using latest version: I'm using YoutubeVideoSearchTool from crewai[tools] |
Pretty sure the problem is caused by a change from Langchain, specifically Langchain-core. They added config as a required parameter for _run(). More detailed information can be found here: Pull Request and Commit. |
Yes, I could confirm that this issue will no longer exist after I downgrade: |
Downgrading worked for me as well |
worked for me. thanks |
Still receiving same error. Downgrade to langchain-core to 0.2.15 langchain to 0.2.6 langchain-community to 0.2.6 results in: ImportError: cannot import name 'tool_call_chunk' from 'langchain_core.messages.tool' (/usr/local/lib/python3.11/site-packages/langchain_core/messages/tool.py) |
^ I'm having the same issue |
Downgrading to "langchain-openai==0.1.14" worked for me |
Downgrade to langchain-core to 0.2.15 langchain to 0.2.6 langchain-community to 0.2.6 results in: ImportError: cannot import name 'tool_call_chunk' from 'langchain_core.messages.tool' (/usr/local/lib/python3.11/site-packages/langchain_core/messages/tool.py same issue! |
I wonder why these libraries keep breaking with issues like these locally but different AI IDE's like lightning AI and maybe collab are fine. Perhaps its a sync reason? not quite sure. |
nvm, you need to uninstall crewai and install it again to 0.41.1, They changed certain features i assume, especially the execute() -> execute_sync(), (or execute_async()) |
@lirockyzhang Why is this closed? Given CrewAI is heavily built on top of LangChain, pinning CrewAI's primary dependency is not a long-term solution. This needs to be reopened. |
+1, I also think this dependency issue should be solved instead of walkaround. |
agree, we are removing the dependency on langchain given how much we had to re-write it, but to support langchain tools we still need some connecting tissue, thanks for flagging @brycecf |
I am still facing same issue even with the latest crewAI update, tools are working fine. The same code works well in visual studio. I am facing this issue in Jupyter notebook [DEBUG]: == Working Agent: Senior Database Developer
Action: check_sql I encountered an error while trying to use the tool. This was the error: StructuredTool._run() missing 1 required keyword-only argument: 'config'. |
Hey i still have this issue. I was following this tutorial I encountered an error while trying to use the tool. This was the error: StructuredTool._run() missing 1 required keyword-only argument: 'config'. I am using my own data set by converting csv files to a db. and when i invoke the tool individually it runs and gives the output. I have degraded the versions as specified above. !pip -qqq install langchain-core==0.2.15 --progress-bar off just for your reference i am using the above versions. How can i fix it any suggestions? |
Here is the code I have for using the hierarchical process:
However, no matter what langauge model I use, the following error keeps reoccurring:
Then I changed the process back to sequential, but this error(I encountered an error while trying to use the tool. This was the error: StructuredTool._run() missing 1 required keyword-only argument: 'config'.) still occurs whenever an agent tries to call on tools.
The text was updated successfully, but these errors were encountered: