class_docstr: Can't modify signature, as LangChain does a Pydantic check.
class_docstr_tok: ["Ca","n't","modify","signature",",","as","LangChain","does","a","Pydantic","check","."]
docstr: Get information about specified tables.
  Follows best practices as specified in: Rajkumar et al, 2022 (https://arxiv.org/abs/2204.00498)
  If `sample_rows_in_table_info`, the specified number of sample rows will be
  appended to each table description. This can increase performance as demonstrated in the paper.
docstr_tok: ["Get","information","about","specified","tables",".","Follows","best","practices","as","specified","in",":","Rajkumar","et","al",",","2022","(","https",":","\/\/arxiv.org\/abs\/2204.00498",")","If","`","sample_rows_in_table_info","`",",","the","specified","number","of","sample","rows","will","be","appended","to","each","table","description",".","This","can","increase","performance","as","demonstrated","in","the","paper","."]
code: def get_table_info(
      self, table_names: Optional[List[str]] = None
  ) -> str:
      """Get information about specified tables.
      Follows best practices as specified in: Rajkumar et al, 2022 (https://arxiv.org/abs/2204.00498)
      If `sample_rows_in_table_info`, the specified number of sample rows will be
      appended to each table description. This can increase performance as demonstrated in the paper.
      """
      all_table_names = self.get_usable_table_names()
      if table_names is not None:
          missing_tables = set(table_names).difference(all_table_names)
          if missing_tables:
              raise ValueError(
                  f"table_names {missing_tables} not found in database"
              )
          all_table_names = table_names
  
      tables = []
      for table in all_table_names:
          table_info = self._get_single_table_info(table)
          tables.append(table_info)
  
      final_str = "\n\n".join(tables)
      return final_str
  
file_path: mindsdb/mindsdb/integrations/handlers/langchain_handler/mindsdb_database_agent.py
imports: import warnings
  from typing import Iterable, List, Optional
  from mindsdb_sql import parse_sql
  from langchain.sql_database import SQLDatabase
  from mindsdb.utilities import log
label_desc: Use image node_id 7 for calling the MindsDBSQL obj's underlying member method code with example usage: obj.get_table_info(table_names) and returns: final_str