diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py index a8d31df4..63ff9b8b 100644 --- a/letta/server/rest_api/app.py +++ b/letta/server/rest_api/app.py @@ -16,7 +16,6 @@ from letta.constants import ADMIN_PREFIX, API_PREFIX, OPENAI_API_PREFIX from letta.errors import LettaAgentNotFoundError, LettaUserNotFoundError from letta.log import get_logger from letta.orm.errors import DatabaseTimeoutError, ForeignKeyConstraintViolationError, NoResultFound, UniqueConstraintViolationError -from letta.schemas.letta_response import LettaResponse from 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 tests diff --git a/letta/services/agent_manager.py b/letta/services/agent_manager.py index 26ce034a..3c812414 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 agent agent = AgentModel.read(db_session=session, identifier=agent_id, actor=actor) - agent_state = agent.to_pydantic() + agent.to_pydantic() agent.hard_delete(session) # ======================================================================================================================