Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
chore: I did not change those
Shubham Naika197a9b91974
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.pyindex 63ff9b8b7..a8d31df49 100644--- a/letta/server/rest_api/app.py+++ b/letta/server/rest_api/app.py@@ -16,6 +16,7 @@ from letta.constants import ADMIN_PREFIX, API_PREFIX, OPENAI_API_PREFIXfrom letta.errors import LettaAgentNotFoundError, LettaUserNotFoundErrorfrom letta.log import get_loggerfrom letta.orm.errors import DatabaseTimeoutError, ForeignKeyConstraintViolationError, NoResultFound, UniqueConstraintViolationError+from letta.schemas.letta_response import LettaResponsefrom letta.server.constants import REST_DEFAULT_PORT# NOTE(charles): these are extra routes that are not part of v1 but we still need to mount to pass testsdiff --git a/letta/services/agent_manager.py b/letta/services/agent_manager.pyindex 3c8124148..26ce034ad 100644--- a/letta/services/agent_manager.py+++ b/letta/services/agent_manager.py@@ -294,7 +294,7 @@ class AgentManager:with self.session_maker() as session:# Retrieve the agentagent = AgentModel.read(db_session=session, identifier=agent_id, actor=actor)- agent.to_pydantic()+ agent_state = agent.to_pydantic()agent.hard_delete(session)# ======================================================================================================================