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: add desktop ui app

Shubham Naikab181c18bade
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py
index a8d31df49..63ff9b8b7 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 26ce034ad..3c8124148 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)
# ======================================================================================================================