sync update from LAN repo (source master-nj @ 067eb808)
This commit is contained in:
1 parent
1244fb1f2f
commit
1d5dd8fc90
182 files changed
+18973
-769
No files matched your search
@@ -135,8 +135,14 @@ def get_available_tools(
|
||||
builtin_tools.append(scheduled_task_tool)
|
||||
|
||||
# Memory V2:记忆与 builtin provider 都启用时,暴露 memory 工具给 LLM 主动写入
|
||||
memory_config = getattr(config, "memory", None)
|
||||
if memory_config is not None and getattr(memory_config, "enabled", False):
|
||||
memory_config = getattr(config, "memory", None)
|
||||
try:
|
||||
from deerflow.config.system_settings import get_memory_runtime_settings
|
||||
|
||||
memory_runtime_enabled = get_memory_runtime_settings().enabled
|
||||
except Exception: # noqa: BLE001 - settings failure must keep memory off
|
||||
memory_runtime_enabled = False
|
||||
if memory_runtime_enabled and memory_config is not None:
|
||||
builtin_config = getattr(memory_config, "builtin", None)
|
||||
if builtin_config is not None and getattr(builtin_config, "enabled", False):
|
||||
builtin_tools.append(memory_tool)
|
||||
|
||||
Reference in new issue
Block a user