24 lines
764 B
Python
24 lines
764 B
Python
"""Core Tools factory — returns all 5 tools for the Agent."""
|
|||
|
|
|
||
|
|
from pathlib import Path
|
||
|
|
from typing import List
|
||
|
|
|
||
|
|
from langchain_core.tools import BaseTool
|
||
|
|
|
||
|
|
from .terminal_tool import create_terminal_tool
|
||
|
|
from .python_repl_tool import create_python_repl_tool
|
||
|
|
from .fetch_url_tool import create_fetch_url_tool
|
||
|
|
from .read_file_tool import create_read_file_tool
|
||
|
|
from .search_knowledge_tool import create_search_knowledge_tool
|
||
|
|
|
||
|
|
|
||
|
|
def get_all_tools(base_dir: Path) -> List[BaseTool]:
|
||
|
|
"""Create and return all 5 core tools, sandboxed to base_dir."""
|
||
|
|
return [
|
||
|
|
create_terminal_tool(base_dir),
|
||
|
|
create_python_repl_tool(),
|
||
|
|
create_fetch_url_tool(),
|
||
|
|
create_read_file_tool(base_dir),
|
||
|
|
create_search_knowledge_tool(base_dir),
|
||
|
|
]
|