BaseSQLDatabaseTool#

class langchain_community.tools.sql_database.tool.BaseSQLDatabaseTool[source]#

Bases: BaseModel

Base tool for interacting with a SQL database.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param db: SQLDatabase [Required]#