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: make agent_ids field as deprecated on list runs [LET-4573] (#5067)

cthomasd7b2d3c6ba49
diff --git a/fern/openapi.json b/fern/openapi.json
index 1f2695d85..05a88329a 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -9764,10 +9764,12 @@
"type": "null"
}
],
- "description": "(DEPRECATED) The unique identifiers of the agents associated with the run.",
+ "description": "The unique identifiers of the agents associated with the run. Deprecated in favor of agent_id field.",
+ "deprecated": true,
"title": "Agent Ids"
},
- "description": "(DEPRECATED) The unique identifiers of the agents associated with the run."
+ "description": "The unique identifiers of the agents associated with the run. Deprecated in favor of agent_id field.",
+ "deprecated": true
},
{
"name": "background",
diff --git a/letta/server/rest_api/routers/v1/runs.py b/letta/server/rest_api/routers/v1/runs.py
index d5a6efac4..0252684ea 100644
--- a/letta/server/rest_api/routers/v1/runs.py
+++ b/letta/server/rest_api/routers/v1/runs.py
@@ -33,7 +33,11 @@ router = APIRouter(prefix="/runs", tags=["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."),
- agent_ids: Optional[List[str]] = Query(None, description="(DEPRECATED) The unique identifiers of the agents associated with the run."),
+ agent_ids: Optional[List[str]] = Query(
+ None,
+ description="The unique identifiers of the agents associated with the run. Deprecated in favor of agent_id field.",
+ deprecated=True,
+ ),
background: Optional[bool] = Query(None, description="If True, filters for runs that were created in background mode."),
stop_reason: Optional[StopReasonType] = Query(None, description="Filter runs by stop reason."),
after: Optional[str] = Query(None, description="Cursor for pagination"),