From 01e9d7902d4bdd0de88bc8d63c96d8d8894b8c4c Mon Sep 17 00:00:00 2001 From: C Mazzoni Date: Fri, 8 Sep 2023 01:04:55 -0400 Subject: [PATCH] Update tool.py (#10203) Fixed the description of tool QuerySQLCheckerTool, the last line of the string description had the old name of the tool 'sql_db_query', this caused the models to sometimes call the non-existent tool The issue was not numerically identified. No dependencies --- libs/langchain/langchain/tools/sql_database/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/tools/sql_database/tool.py b/libs/langchain/langchain/tools/sql_database/tool.py index f60275bcafb7c..75f45c7b9e77d 100644 --- a/libs/langchain/langchain/tools/sql_database/tool.py +++ b/libs/langchain/langchain/tools/sql_database/tool.py @@ -93,7 +93,7 @@ class QuerySQLCheckerTool(BaseSQLDatabaseTool, BaseTool): name: str = "sql_db_query_checker" description: str = """ Use this tool to double check if your query is correct before executing it. - Always use this tool before executing a query with query_sql_db! + Always use this tool before executing a query with sql_db_query! """ @root_validator(pre=True)