Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Remove .DS_Store from agents list (#485)

Charles Packer4ba4c02fa133
diff --git a/memgpt/utils.py b/memgpt/utils.py
index ada292499..c6b371dd5 100644
--- a/memgpt/utils.py
+++ b/memgpt/utils.py
@@ -371,8 +371,10 @@ def estimate_openai_cost(docs):
def list_agent_config_files():
- """List all agents config files"""
- return os.listdir(os.path.join(MEMGPT_DIR, "agents"))
+ """List all agent config files, ignoring dotfiles."""
+ files = os.listdir(os.path.join(MEMGPT_DIR, "agents"))
+ # remove dotfiles like .DS_Store
+ return [file for file in files if not file.startswith(".")]
def list_human_files():