Skip to content

Commit

Permalink
Update tool.py (#10203)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cmazzoni87 authored Sep 8, 2023
1 parent 28de8d1 commit 01e9d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/tools/sql_database/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01e9d79

Please sign in to comment.