The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
[Langchain_community]: Corrected the imports to make them compatible with Sqlachemy <2.0 (#17653)
Mohammad Mohtashim8d4547ae976e
diff --git a/libs/community/langchain_community/utilities/sql_database.py b/libs/community/langchain_community/utilities/sql_database.pyindex 087ac44bc1..fb542cfa88 100644--- a/libs/community/langchain_community/utilities/sql_database.py+++ b/libs/community/langchain_community/utilities/sql_database.py@@ -7,18 +7,17 @@ import sqlalchemyfrom langchain_core._api import deprecatedfrom langchain_core.utils import get_from_envfrom sqlalchemy import (- Executable,MetaData,- Result,Table,create_engine,inspect,select,text,)-from sqlalchemy.engine import Engine+from sqlalchemy.engine import Engine, Resultfrom sqlalchemy.exc import ProgrammingError, SQLAlchemyErrorfrom sqlalchemy.schema import CreateTable+from sqlalchemy.sql.expression import Executablefrom sqlalchemy.types import NullType