from .wikipedia import wiki_fetch_article, wiki_parse_html from .search import web_search from .code_interpreter import execute_code_multilang from langchain_core.tools import BaseTool from . import calculator, files def get_all_tools() -> list[BaseTool]: """ Get all available tools as a list of LangChain BaseTool instances. Returns: List of BaseTool instances ready for use with LangChain agents """ tools = [ wiki_fetch_article, wiki_parse_html, web_search, #execute_code_multilang, # Disabled for the repo, enable at your own risk ] # Automatically add all functions for the remaining tools tools.extend([getattr(calculator, name) for name in calculator.__all__]) tools.extend([getattr(files, name) for name in files.__all__]) #return [] # Disable all tools return tools def list_tools() -> str: return render_text_description_and_args(get_all_tools()) # type: ignore