code: def _make_text_to_sql_tools(skill: db.Skills, llm, executor) -> List:
      # To prevent dependency on Langchain unless an actual tool uses it.
      try:
          from langchain.agents.agent_toolkits import SQLDatabaseToolkit
          from langchain.tools.sql_database.tool import (
              QuerySQLDataBaseTool,
          )
      except ImportError:
          raise ImportError(
              "To use the text-to-SQL skill, please install langchain with `pip install langchain`"
          )
      database = skill.params["database"]
      tables = skill.params["tables"]
      tables_to_include = [f"{database}.{table}" for table in tables]
      db = MindsDBSQL(
          engine=executor,
          metadata=executor.session.integration_controller,
          include_tables=tables_to_include,
      )
      sql_database_tools = SQLDatabaseToolkit(
          db=db, llm=llm
      ).get_tools()
      description = skill.params.get("description", "")
      tables_list = ",".join(
          [f"{database}.{table}" for table in tables]
      )
      for i, tool in enumerate(sql_database_tools):
          if isinstance(tool, QuerySQLDataBaseTool):
              # Add our own custom description so our agent knows when to query this table.
              tool.description = (
                  f"Use this tool if you need data about {description}. "
                  "Use the conversation context to decide which table to query. "
                  f"These are the available tables: {tables_list}.\n"
                  f"{tool.description}"
              )
              sql_database_tools[i] = tool
      return sql_database_tools
  
file_path: mindsdb/mindsdb/interfaces/skills/skill_tool.py
imports: from mindsdb.interfaces.storage import db
  from mindsdb.integrations.handlers.langchain_embedding_handler.langchain_embedding_handler import construct_model_from_args
  from mindsdb.integrations.handlers.langchain_handler.mindsdb_database_agent import MindsDBSQL
  from mindsdb.integrations.handlers.rag_handler.rag import RAGQuestionAnswerer
  from mindsdb.integrations.handlers.rag_handler.settings import OpenAIParameters, RAGHandlerParameters
  import os
  from typing import List
label_desc: Use image node_id 1 for calling a global function with example usage: _make_text_to_sql_tools(skill, llm, executor) and returns: sql_database_tools