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.

feat: enable folder_ids on agent create [LET-6147] (#6247)

Ari Webb14843b260003
diff --git a/letta/services/agent_manager.py b/letta/services/agent_manager.py
index 32a4a996d..0a2913438 100644
--- a/letta/services/agent_manager.py
+++ b/letta/services/agent_manager.py
@@ -434,7 +434,8 @@ class AgentManager:
supplied_ids = set(agent_create.tool_ids or [])
- source_ids = agent_create.source_ids or []
+ # Use folder_ids if provided, otherwise fall back to deprecated source_ids for backwards compatibility
+ source_ids = agent_create.folder_ids if agent_create.folder_ids else (agent_create.source_ids or [])
# Create default source if requested
if agent_create.include_default_source: