Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: prevent too many runs bug (#6076)
Kian Jones814856711eb9
diff --git a/fern/openapi.json b/fern/openapi.jsonindex 8a3537fa4..23bfe36ba 100644--- a/fern/openapi.json+++ b/fern/openapi.json@@ -10706,7 +10706,8 @@"schema": {"anyOf": [{- "type": "integer"+ "type": "integer",+ "maximum": 1000},{"type": "null"@@ -13662,7 +13663,8 @@"schema": {"anyOf": [{- "type": "integer"+ "type": "integer",+ "maximum": 1000},{"type": "null"diff --git a/letta/server/rest_api/routers/v1/internal_runs.py b/letta/server/rest_api/routers/v1/internal_runs.pyindex 1e6df2d6c..d8af05c47 100644--- a/letta/server/rest_api/routers/v1/internal_runs.py+++ b/letta/server/rest_api/routers/v1/internal_runs.py@@ -52,7 +52,7 @@ async def list_runs(after: Optional[str] = Query(None, description="Run ID cursor for pagination. Returns runs that come after this run ID in the specified sort order"),- limit: Optional[int] = Query(100, description="Maximum number of runs to return"),+ limit: Optional[int] = Query(100, description="Maximum number of runs to return", le=1000),order: Literal["asc", "desc"] = Query("desc", description="Sort order for runs by creation time. 'asc' for oldest first, 'desc' for newest first"),diff --git a/letta/server/rest_api/routers/v1/runs.py b/letta/server/rest_api/routers/v1/runs.pyindex 4643437fa..0a3063a0a 100644--- a/letta/server/rest_api/routers/v1/runs.py+++ b/letta/server/rest_api/routers/v1/runs.py@@ -61,7 +61,7 @@ async def list_runs(after: Optional[str] = Query(None, description="Run ID cursor for pagination. Returns runs that come after this run ID in the specified sort order"),- limit: Optional[int] = Query(100, description="Maximum number of runs to return"),+ limit: Optional[int] = Query(100, description="Maximum number of runs to return", le=1000),order: Literal["asc", "desc"] = Query("desc", description="Sort order for runs by creation time. 'asc' for oldest first, 'desc' for newest first"),