-
Notifications
You must be signed in to change notification settings - Fork 965
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
SQLToolManager.db_query_tool() missing 1 required positional argument: 'query'/'self' #1855
Comments
Feels like an issue with But in the code snippet that you shared, why would this work:
I don't see |
class SQLToolManager:
test codeif name == "main":
File "/home/flyang/anaconda3/envs/LLMs/lib/python3.11/site-packages/langchain_core/tools/base.py", line 489, in invoke |
System Information
Package Information
|
input_query = "SELECT * FROM Artist LIMIT 10;"
File "/home/flyang/anaconda3/envs/LLMs/lib/python3.11/site-packages/pydantic/main.py", line 595, in model_validate |
I believe something like this works:
|
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Example Code
https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/sql-agent.ipynb
System Info
System Information
Package Information
Other Dependencies
The text was updated successfully, but these errors were encountered: