from __future__ import annotations from pathlib import Path from typing import List, Optional from SimpleLLMFunc.builtin import FileToolset from SimpleLLMFunc.tool import Tool def create_builtin_file_tools(workspace: Optional[str | Path] = None) -> List[Tool]: """Create SimpleLLMFunc builtin file tools scoped to the active workspace.""" root = Path(workspace).expanduser().resolve() if workspace else Path.cwd().resolve() return FileToolset(root).toolset __all__ = ["create_builtin_file_tools"]