mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 01:48:57 +00:00
Josha91 fix docstring (#19249)
Co-authored-by: Josha van Houdt <josha.van.houdt@sap.com> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
parent
58c7687174
commit
efcdf54edd
@ -86,7 +86,7 @@ class ListSQLDatabaseTool(BaseSQLDatabaseTool, BaseTool):
|
|||||||
"""Tool for getting tables names."""
|
"""Tool for getting tables names."""
|
||||||
|
|
||||||
name: str = "sql_db_list_tables"
|
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
|
args_schema: Type[BaseModel] = _ListSQLDataBaseToolInput
|
||||||
|
|
||||||
def _run(
|
def _run(
|
||||||
@ -94,7 +94,7 @@ class ListSQLDatabaseTool(BaseSQLDatabaseTool, BaseTool):
|
|||||||
tool_input: str = "",
|
tool_input: str = "",
|
||||||
run_manager: Optional[CallbackManagerForToolRun] = None,
|
run_manager: Optional[CallbackManagerForToolRun] = None,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Get the schema for a specific table."""
|
"""Get a comma-separated list of table names."""
|
||||||
return ", ".join(self.db.get_usable_table_names())
|
return ", ".join(self.db.get_usable_table_names())
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user