Storage
AIOS Storage Manager
The storage manager in AIOS is built powered by the LLM-based semantic file system, which is published in ICLR2025, with its paper can be found at From Commands to Prompts: LLM-based Semantic File System for AIOS.
class StorageManager:
def __init__(self, root_dir, use_vector_db=True, filesystem_type="lsfs"):
self.use_vector_db = use_vector_db
self.filesystem_type = filesystem_type
self.root_dir = root_dir
os.makedirs(self.root_dir, exist_ok=True)
if filesystem_type == "lsfs":
self.filesystem = LSFS(root_dir, use_vector_db)
def address_request(self, agent_request):
return self.filesystem.address_request(agent_request)By default, the storage manager integrates the LLM-based semantic file system as its file system, which supports prompt-driven file management. Its original implementation can be found at https://github.com/agiresearch/AIOS-LSFS.
Available system calls are shown as below
Last updated