first commit

This commit is contained in:
2026-07-22 13:48:46 +08:00
commit c87751c3dc
2820 changed files with 726976 additions and 0 deletions
@@ -0,0 +1,17 @@
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"]