mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
simplification and further memory decoupling
components.js restore plugins tools fix restore agent.py
This commit is contained in:
parent
e548bf257b
commit
d69e30adc6
41 changed files with 280 additions and 925 deletions
|
|
@ -477,15 +477,8 @@ def create_project_meta_folders(name: str):
|
|||
# create instructions folder
|
||||
files.create_dir(get_project_meta_folder(name, PROJECT_INSTRUCTIONS_DIR))
|
||||
|
||||
# create knowledge folders
|
||||
# create knowledge folders (plugins create their own subdirs lazily)
|
||||
files.create_dir(get_project_meta_folder(name, PROJECT_KNOWLEDGE_DIR))
|
||||
from python.helpers.plugins import import_plugin_module
|
||||
memory = import_plugin_module("memory", "helpers/memory.py")
|
||||
|
||||
for memory_type in memory.Memory.Area:
|
||||
files.create_dir(
|
||||
get_project_meta_folder(name, PROJECT_KNOWLEDGE_DIR, memory_type.value)
|
||||
)
|
||||
|
||||
|
||||
def get_knowledge_files_count(name: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue