Agent Zero AI framework
absolute path fix
Alessandroc7d251b675e4
diff --git a/plugins/memory/api/memory_dashboard.py b/plugins/memory/api/memory_dashboard.pyindex 774319a49..34058264e 100644--- a/plugins/memory/api/memory_dashboard.py+++ b/plugins/memory/api/memory_dashboard.py@@ -4,13 +4,7 @@ from models import ModelConfig, ModelTypefrom langchain_core.documents import Documentfrom agent import AgentContext-# Import Memory functions from plugin-import sys-from pathlib import Path-_plugin_root = Path(__file__).parent.parent-if str(_plugin_root) not in sys.path:- sys.path.insert(0, str(_plugin_root))-from helpers.memory import Memory, get_existing_memory_subdirs, get_context_memory_subdir+from plugins.memory.helpers.memory import Memory, get_existing_memory_subdirs, get_context_memory_subdirclass MemoryDashboard(ApiHandler):diff --git a/plugins/memory/helpers/memory_consolidation.py b/plugins/memory/helpers/memory_consolidation.pyindex 9c1fe04b3..f9f701c78 100644--- a/plugins/memory/helpers/memory_consolidation.py+++ b/plugins/memory/helpers/memory_consolidation.py@@ -7,19 +7,12 @@ from enum import Enumfrom langchain_core.documents import Document-from .memory import Memory+from plugins.memory.helpers.memory import Memoryfrom python.helpers.dirty_json import DirtyJsonfrom python.helpers.log import LogItemfrom python.helpers.print_style import PrintStylefrom agent import Agent--# Import from tools within plugin-import sys-from pathlib import Path-_plugin_root = Path(__file__).parent.parent-if str(_plugin_root) not in sys.path:- sys.path.insert(0, str(_plugin_root))-from tools.memory_load import DEFAULT_THRESHOLD as DEFAULT_MEMORY_THRESHOLD+from plugins.memory.tools.memory_load import DEFAULT_THRESHOLD as DEFAULT_MEMORY_THRESHOLDclass ConsolidationAction(Enum):