2024-12-24 18:38:51 +08:00
|
|
|
from typing import TYPE_CHECKING, Any, cast
|
2024-10-21 10:43:49 +08:00
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
from core.tools.tool_file_manager import ToolFileManager
|
|
|
|
|
|
|
|
tool_file_manager: dict[str, Any] = {"manager": None}
|
2024-09-10 17:00:20 +08:00
|
|
|
|
2024-01-23 19:58:23 +08:00
|
|
|
|
|
|
|
class ToolFileParser:
|
|
|
|
@staticmethod
|
2024-09-10 17:00:20 +08:00
|
|
|
def get_tool_file_manager() -> "ToolFileManager":
|
2024-12-24 18:38:51 +08:00
|
|
|
return cast("ToolFileManager", tool_file_manager["manager"])
|