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] LangChain design conflict: StructuredTool._run() missing 1 required keyword-only argument: 'config' #86

Open
brycecf opened this issue Aug 7, 2024 · 3 comments

Comments

@brycecf
Copy link

brycecf commented Aug 7, 2024

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'.

Possible Solution
None

Additional Context
langchain==0.2.12
langchain-core==0.2.28

@joaomdmoura
Copy link
Collaborator

cc @gvieira

@joaomdmoura
Copy link
Collaborator

I think we fixed this on crewAI side right @gvieira , can you give us more context on what versions you are using just to be sure :)

@gvieira
Copy link
Collaborator

gvieira commented Aug 12, 2024

That's correct. We did fix it a while a go. A version update will make it right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants