Download api/core/file/tool_file_parser.py from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/api/core/file/tool_file_parser.py
- Command line
-
hf download hf://spaces/ZHZ1024/dify/api/core/file/tool_file_parser.py
-
curl -L -o tool_file_parser.py https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/api/core/file/tool_file_parser.py
313 Bytes
| from typing import TYPE_CHECKING, Any | |
| if TYPE_CHECKING: | |
| from core.tools.tool_file_manager import ToolFileManager | |
| tool_file_manager: dict[str, Any] = {"manager": None} | |
| class ToolFileParser: | |
| def get_tool_file_manager() -> "ToolFileManager": | |
| return tool_file_manager["manager"] | |