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 __init__(
      self,
      engine,
      schema: Optional[str] = None,
      metadata: Optional = None,
      ignore_tables: Optional[List[str]] = None,
      include_tables: Optional[List[str]] = None,
      sample_rows_in_table_info: int = 3,
      indexes_in_table_info: bool = False,
      custom_table_info: Optional[dict] = None,
      view_support: Optional[bool] = True,
  ):
      # Some args above are not used in this class, but are kept for compatibility
      self._engine = engine  # executor instance
      self._metadata = metadata  # integrations controller instance
      self._sample_rows_in_table_info = int(sample_rows_in_table_info)
  
      self._tables_to_include = include_tables
      self._tables_to_ignore = []
      if not self._tables_to_include:
          # ignore_tables and include_tables should not be used together.
          # include_tables takes priority if it's set.
          self._tables_to_ignore = ignore_tables
  
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 1 to create a new MindsDBSQL object from inherited base classes: SQLDatabase with example: obj = MindsDBSQL(engine, schema, metadata, ignore_tables, include_tables, sample_rows_in_table_info, indexes_in_table_info, custom_table_info, view_support)