Spaces:
Runtime error
Runtime error
| from .wikipedia import wiki_search | |
| from .search import web_search | |
| from .code_interpreter import execute_code_multilang | |
| from .files import file_management_toolkit | |
| from langchain_core.tools import BaseTool | |
| 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_search, | |
| web_search, | |
| execute_code_multilang | |
| ] | |
| tools.extend(file_management_toolkit.get_tools()) # Add file management tools | |
| return tools | |
| def list_tools() -> str: | |
| return render_text_description_and_args(get_all_tools()) # type: ignore |