Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: revert sleeptime agents back to old agent loop (#1625)
cthomas3b2ff1fdf998
diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.pyindex bc0aab16e..18255ae35 100644--- a/letta/server/rest_api/routers/v1/agents.py+++ b/letta/server/rest_api/routers/v1/agents.py@@ -593,7 +593,12 @@ async def send_message(# TODO: This is redundant, remove soonagent = server.agent_manager.get_agent_by_id(agent_id, actor)- if agent.llm_config.model_endpoint_type == "anthropic" and not agent.enable_sleeptime and not agent.multi_agent_group:+ if (+ agent.llm_config.model_endpoint_type == "anthropic"+ and not agent.enable_sleeptime+ and not agent.multi_agent_group+ and not agent.agent_type == AgentType.sleeptime_agent+ ):experimental_agent = LettaAgent(agent_id=agent_id,message_manager=server.message_manager,@@ -649,7 +654,12 @@ async def send_message_streaming(# TODO: This is redundant, remove soonagent = server.agent_manager.get_agent_by_id(agent_id, actor)- if agent.llm_config.model_endpoint_type == "anthropic" and not agent.enable_sleeptime and not agent.multi_agent_group:+ if (+ agent.llm_config.model_endpoint_type == "anthropic"+ and not agent.enable_sleeptime+ and not agent.multi_agent_group+ and not agent.agent_type == AgentType.sleeptime_agent+ ):experimental_agent = LettaAgent(agent_id=agent_id,message_manager=server.message_manager,