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
This commit is contained in:
C Mazzoni
2023-09-08 01:04:55 -04:00
committed by GitHub
parent 28de8d132c
commit 01e9d7902d

View File

@@ -93,7 +93,7 @@ class QuerySQLCheckerTool(BaseSQLDatabaseTool, BaseTool):
name: str = "sql_db_query_checker" name: str = "sql_db_query_checker"
description: str = """ description: str = """
Use this tool to double check if your query is correct before executing it. 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) @root_validator(pre=True)