Replies: 1 comment
-
When I change my implementation to use a simple function like this: def file_changes_tool(param1: str, param2: str, param3: str, param4: str, changes: list):
"""
Create file change1
:param param1: description param1
:param param2: description param2
:param param3: description param3
:param param4: description param4
:param changes: list of dict with elements "path" and "content". The path of file. The content has the changes for the file.
:return: the JSON response from the changes details
"""
# implementation
return "my return" And declare that like this: tools = [ StructuredTool.from_function(file_changes_tool) ] Then it runs with success! No errors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
When my agent try to use the StructuredTool mentioned on example, I got an error
I check that this error occurs on
langchain_core.tools.structured.StructuredTool._run
.The
*args
is empty because of this other methodThis method does not accept a mix of *args and **kwargs
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions