Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
make docs generation idempotent
Caren Thomaseb23a43d8ea7
diff --git a/letta/schemas/organization.py b/letta/schemas/organization.pyindex 35784ad0d..f8fc789a3 100644--- a/letta/schemas/organization.py+++ b/letta/schemas/organization.py@@ -13,7 +13,7 @@ class OrganizationBase(LettaBase):class Organization(OrganizationBase):id: str = OrganizationBase.generate_id_field()- name: str = Field(create_random_username(), description="The name of the organization.")+ name: str = Field(create_random_username(), description="The name of the organization.", json_schema_extra={"default": "SincereYogurt"})created_at: Optional[datetime] = Field(default_factory=get_utc_time, description="The creation date of the organization.")diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.pyindex 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_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 26ce034ad..a51a5faca 100644--- a/letta/services/agent_manager.py+++ b/letta/services/agent_manager.py@@ -294,7 +294,6 @@ class AgentManager:with self.session_maker() as session:# Retrieve the agentagent = AgentModel.read(db_session=session, identifier=agent_id, actor=actor)- agent_state = agent.to_pydantic()agent.hard_delete(session)# ======================================================================================================================diff --git a/letta/settings.py b/letta/settings.pyindex 4b8bd7082..03c6f86dc 100644--- a/letta/settings.py+++ b/letta/settings.py@@ -60,7 +60,13 @@ class ModelSettings(BaseSettings):openllm_api_key: Optional[str] = None-cors_origins = ["http://letta.localhost", "http://localhost:8283", "http://localhost:8083", "http://localhost:3000", "http://localhost:4200"]+cors_origins = [+ "http://letta.localhost",+ "http://localhost:8283",+ "http://localhost:8083",+ "http://localhost:3000",+ "http://localhost:4200",+]class Settings(BaseSettings):