feat: make agent_ids field as deprecated on list runs [LET-4573] (#5067)

* feat: make agent_ids field as deprecated on list runs

* api sync
This commit is contained in:
cthomas
2025-10-01 14:35:24 -07:00
committed by Caren Thomas
parent b5e848ff18
commit d7b2d3c6ba
2 changed files with 9 additions and 3 deletions

View File

@@ -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",

View File

@@ -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"),