mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +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."""
|
||||
|
||||
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())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user