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
Description
Continuation of #924, which was closed without providing a long-term solution.
With langchain-core==0.2.16, a new required arg was added to StructuredTool._run() as shown here. This breaks existing implementations using crewai_tools.BaseTool.
Steps to Reproduce
Create a custom tool using BaseTool.
Expected behavior
Elaborated on in #924, but this works with previous versions of langchain-core.
Screenshots/Code snippets
If applicable, add screenshots or code snippets to help explain your problem.
Environment Details:
Operating System: Sonoma 14.5
Python Version: 3.11.9
crewAI Version: 0.35.5
crewAI Tools Version: 0.4.26
Logs
Thought: <LLM output>
Action: custom_crew
Action Input: {"query": "<LLM-derived query>"}
I encountered an error while trying to use the tool. This was the error: StructuredTool._run() missing 1 required keyword-only argument: 'config'.
Description
Continuation of #924, which was closed without providing a long-term solution.
With
langchain-core==0.2.16
, a new required arg was added to StructuredTool._run() as shown here. This breaks existing implementations usingcrewai_tools.BaseTool
.Steps to Reproduce
Create a custom tool using BaseTool.
Expected behavior
Elaborated on in #924, but this works with previous versions of
langchain-core
.Screenshots/Code snippets
If applicable, add screenshots or code snippets to help explain your problem.
Environment Details:
3.11.9
0.35.5
0.4.26
Logs
Possible Solution
None
Additional Context
langchain==0.2.12
langchain-core==0.2.28
The text was updated successfully, but these errors were encountered: