mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 07:16:20 +08:00
10 lines
265 B
Python
10 lines
265 B
Python
from collections.abc import Callable
|
|
from typing import Any
|
|
|
|
_tool_file_manager_factory: Callable[[], Any] | None = None
|
|
|
|
|
|
def set_tool_file_manager_factory(factory: Callable[[], Any]):
|
|
global _tool_file_manager_factory
|
|
_tool_file_manager_factory = factory
|