[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
from langchain_community.agent_toolkits.sql.toolkit import SQLDatabaseToolkit
from langchain_community.utilities.sql_database import SQLDatabase
from langchain_openai import ChatOpenAI
from langchain_community.agent_toolkits import create_sql_agent
db = SQLDatabase.from_uri("sqlite:///Chinook.db")
llm = llm_chat()# LLM of your choice
# Initialize your SQLDatabaseToolkit
toolkit = SQLDatabaseToolkit(db=db, llm=llm)
agent_executor = create_sql_agent(llm_chat(), toolkit=toolkit,max_iterations=11,verbose=True,handle_parsing_errors=True)
Error Message and Stack Trace (if applicable)
Description
I am trying to build a sql agent which can query over tabular data using create_sql_agent and SQLDatabaseToolkit from Langchain.
My code was working fine till day before. Since yesterday SQLDatabasetoolkit function is throwing error.
I will use the build agent to query database but right now cannot even built the toolkit. I am new to this, not sure where to make changes. I believe it is something related to update.
Any help is highly appreciated :)
System Info
System Information
OS: Linux
OS Version: #1 SMP Tue Oct 22 16:38:23 UTC 2024
Python Version: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Any help is highly appreciated :)
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies