mirror of
https://github.com/langgenius/dify.git
synced 2025-07-31 05:18:40 +00:00
13 lines
391 B
Python
13 lines
391 B
Python
from collections.abc import Callable
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from core.tools.tool_file_manager import ToolFileManager
|
|
|
|
_tool_file_manager_factory: Callable[[], "ToolFileManager"] | None = None
|
|
|
|
|
|
def set_tool_file_manager_factory(factory: Callable[[], "ToolFileManager"]) -> None:
|
|
global _tool_file_manager_factory
|
|
_tool_file_manager_factory = factory
|