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_sample_rows(self, table: str, fields: List[str]) -> str:
      command = f"select {','.join(fields)} from {table} limit {self._sample_rows_in_table_info};"
      try:
          ret = self._call_engine([command])
          sample_rows = ret.data
          sample_rows = list(
              map(
                  lambda ls: [
                      str(i) if len(str(i)) < 100 else str[:100] + "..."
                      for i in ls
                  ],
                  sample_rows,
              )
          )
          sample_rows_str = "\n" + "\n".join(
              ["\t".join(row) for row in sample_rows]
          )
      except Exception:
          sample_rows_str = (
              "\n" + "\t [error] Couldn't retrieve sample rows!"
          )
  
      return sample_rows_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 9 for calling the MindsDBSQL obj's underlying member method code with example usage: obj._get_sample_rows(table, fields) and returns: sample_rows_str