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.pyindex 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 requestedif agent_create.include_default_source: