From efcdf54eddcfa270d409a7d695cb2762ce170f26 Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Mon, 18 Mar 2024 21:19:56 -0700 Subject: [PATCH] Josha91 fix docstring (#19249) Co-authored-by: Josha van Houdt Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> --- libs/community/langchain_community/tools/sql_database/tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/tools/sql_database/tool.py b/libs/community/langchain_community/tools/sql_database/tool.py index 62e3349365d..2981f09eae4 100644 --- a/libs/community/langchain_community/tools/sql_database/tool.py +++ b/libs/community/langchain_community/tools/sql_database/tool.py @@ -86,7 +86,7 @@ class ListSQLDatabaseTool(BaseSQLDatabaseTool, BaseTool): """Tool for getting tables names.""" name: str = "sql_db_list_tables" - description: str = "Input is an empty string, output is a comma separated list of tables in the database." + description: str = "Input is an empty string, output is a comma-separated list of tables in the database." args_schema: Type[BaseModel] = _ListSQLDataBaseToolInput def _run( @@ -94,7 +94,7 @@ class ListSQLDatabaseTool(BaseSQLDatabaseTool, BaseTool): tool_input: str = "", run_manager: Optional[CallbackManagerForToolRun] = None, ) -> str: - """Get the schema for a specific table.""" + """Get a comma-separated list of table names.""" return ", ".join(self.db.get_usable_table_names())