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","."]
code: def _get_single_table_info(self, table_str: str) -> str:
      controller = self._metadata
      integration, table_name = table_str.split(".")
      cols_df = (
          controller.get_handler(integration)
          .get_columns(table_name)
          .data_frame
      )
      fields = cols_df["Field"].to_list()
      dtypes = cols_df["Type"].to_list()
  
      info = f"Table named `{table_name}`\n"
      info += f"\n/* Sample with first {self._sample_rows_in_table_info} rows from table `{table_str}`:\n"
      info += "\t".join([field for field in fields])
      info += self._get_sample_rows(table_str, fields) + "\n*/"
      info += (
          "\nColumn data types: "
          + ",\t".join(
              [
                  f"`{field}` : `{dtype}`"
                  for field, dtype in zip(fields, dtypes)
              ]
          )
          + "\n"
      )  # noqa
      return info
  
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 8 for calling the MindsDBSQL obj's underlying member method code with example usage: obj._get_single_table_info(table_str) and returns: info