Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Deprecate project (#5079)
Shubham Naik832d6275b942
diff --git a/fern/openapi.json b/fern/openapi.jsonindex 05a88329a..b323b18cf 100644--- a/fern/openapi.json+++ b/fern/openapi.json@@ -9808,7 +9808,7 @@"description": "Filter runs by stop reason."},{- "name": "after",+ "name": "before","in": "query","required": false,"schema": {@@ -9820,13 +9820,13 @@"type": "null"}],- "description": "Cursor for pagination",- "title": "After"+ "description": "Run ID cursor for pagination. Returns runs that come before this run ID in the specified sort order",+ "title": "Before"},- "description": "Cursor for pagination"+ "description": "Run ID cursor for pagination. Returns runs that come before this run ID in the specified sort order"},{- "name": "before",+ "name": "after","in": "query","required": false,"schema": {@@ -9838,10 +9838,10 @@"type": "null"}],- "description": "Cursor for pagination",- "title": "Before"+ "description": "Run ID cursor for pagination. Returns runs that come after this run ID in the specified sort order",+ "title": "After"},- "description": "Cursor for pagination"+ "description": "Run ID cursor for pagination. Returns runs that come after this run ID in the specified sort order"},{"name": "limit",@@ -9857,11 +9857,37 @@}],"description": "Maximum number of runs to return",- "default": 50,+ "default": 100,"title": "Limit"},"description": "Maximum number of runs to return"},+ {+ "name": "order",+ "in": "query",+ "required": false,+ "schema": {+ "enum": ["asc", "desc"],+ "type": "string",+ "description": "Sort order for runs by creation time. 'asc' for oldest first, 'desc' for newest first",+ "default": "desc",+ "title": "Order"+ },+ "description": "Sort order for runs by creation time. 'asc' for oldest first, 'desc' for newest first"+ },+ {+ "name": "order_by",+ "in": "query",+ "required": false,+ "schema": {+ "const": "created_at",+ "type": "string",+ "description": "Field to sort by",+ "default": "created_at",+ "title": "Order By"+ },+ "description": "Field to sort by"+ },{"name": "active","in": "query",@@ -9880,11 +9906,13 @@"required": false,"schema": {"type": "boolean",- "description": "Whether to sort agents oldest to newest (True) or newest to oldest (False, default)",+ "description": "Whether to sort agents oldest to newest (True) or newest to oldest (False, default). Deprecated in favor of order field.",+ "deprecated": true,"default": false,"title": "Ascending"},- "description": "Whether to sort agents oldest to newest (True) or newest to oldest (False, default)"+ "description": "Whether to sort agents oldest to newest (True) or newest to oldest (False, default). Deprecated in favor of order field.",+ "deprecated": true}],"responses": {@@ -24486,12 +24514,12 @@}],"title": "From Template",- "description": "The template id used to configure the agent"+ "description": "Deprecated: please use the 'create agents from a template' endpoint instead."},"template": {"type": "boolean","title": "Template",- "description": "Whether the agent is a template",+ "description": "Deprecated: Whether the agent is a template","default": false},"project": {@@ -27679,12 +27707,12 @@}],"title": "From Template",- "description": "The template id used to configure the agent"+ "description": "Deprecated: please use the 'create agents from a template' endpoint instead."},"template": {"type": "boolean","title": "Template",- "description": "Whether the agent is a template",+ "description": "Deprecated: Whether the agent is a template","default": false},"project": {@@ -35857,12 +35885,12 @@}],"title": "From Template",- "description": "The template id used to configure the agent"+ "description": "Deprecated: please use the 'create agents from a template' endpoint instead."},"template": {"type": "boolean","title": "Template",- "description": "Whether the agent is a template",+ "description": "Deprecated: Whether the agent is a template","default": false},"project": {diff --git a/letta/schemas/agent.py b/letta/schemas/agent.pyindex a49f8d831..657916fe5 100644--- a/letta/schemas/agent.py+++ b/letta/schemas/agent.py@@ -223,8 +223,8 @@ class CreateAgent(BaseModel, validate_assignment=True): #)enable_reasoner: Optional[bool] = Field(True, description="Whether to enable internal extended thinking step for a reasoner model.")reasoning: Optional[bool] = Field(None, description="Whether to enable reasoning for this agent.")- from_template: Optional[str] = Field(None, description="The template id used to configure the agent")- template: bool = Field(False, description="Whether the agent is a template")+ from_template: Optional[str] = Field(None, description="Deprecated: please use the 'create agents from a template' endpoint instead.")+ template: bool = Field(False, description="Deprecated: No longer used")project: Optional[str] = Field(None,deprecated=True,