From 3d342d402b7eb5467df7bea24a66544a55876b15 Mon Sep 17 00:00:00 2001 From: Christina Tong Date: Tue, 21 Oct 2025 16:55:16 -0700 Subject: [PATCH] fix: change operation id of list internal runs (#5637) * fix: change operation id of list internal runs * update docs --- fern/openapi.json | 6 +++--- letta/server/rest_api/routers/v1/internal_runs.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fern/openapi.json b/fern/openapi.json index 85635997..e3874fa5 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -8879,7 +8879,7 @@ "tags": ["_internal_runs"], "summary": "List Runs", "description": "List all runs.", - "operationId": "list_runs", + "operationId": "list_internal_runs", "parameters": [ { "name": "agent_id", @@ -9115,7 +9115,7 @@ "items": { "$ref": "#/components/schemas/Run" }, - "title": "Response List Runs" + "title": "Response List Internal Runs" } } } @@ -11091,7 +11091,7 @@ "tags": ["runs"], "summary": "List Runs", "description": "List all runs.", - "operationId": "list_runs1", + "operationId": "list_runs", "parameters": [ { "name": "agent_id", diff --git a/letta/server/rest_api/routers/v1/internal_runs.py b/letta/server/rest_api/routers/v1/internal_runs.py index 545698c4..bd303c8c 100644 --- a/letta/server/rest_api/routers/v1/internal_runs.py +++ b/letta/server/rest_api/routers/v1/internal_runs.py @@ -26,7 +26,7 @@ def convert_statuses_to_enum(statuses: Optional[List[str]]) -> Optional[List[Run return [RunStatus(status) for status in statuses] -@router.get("/", response_model=List[Run], operation_id="list_runs") +@router.get("/", response_model=List[Run], operation_id="list_internal_runs") async def list_runs( server: "SyncServer" = Depends(get_letta_server), agent_id: Optional[str] = Query(None, description="The unique identifier of the agent associated with the run."),