fix: runs endpoint titles (#6282)

This commit is contained in:
cthomas
2025-11-19 16:56:45 -08:00
committed by Caren Thomas
parent 09df9167f3
commit 90e13f7dbc
4 changed files with 649 additions and 18 deletions

View File

@@ -160,9 +160,9 @@ RunMessagesResponse = Annotated[
@router.get(
"/{run_id}/messages",
response_model=RunMessagesResponse,
operation_id="list_run_messages",
operation_id="list_messages_for_run",
)
async def list_run_messages(
async def list_messages_for_run(
run_id: str,
server: "SyncServer" = Depends(get_letta_server),
headers: HeaderParams = Depends(get_headers),
@@ -183,8 +183,8 @@ async def list_run_messages(
return await server.run_manager.get_run_messages(run_id=run_id, actor=actor, before=before, after=after, limit=limit, order=order)
@router.get("/{run_id}/usage", response_model=UsageStatistics, operation_id="retrieve_run_usage")
async def retrieve_run_usage(
@router.get("/{run_id}/usage", response_model=UsageStatistics, operation_id="retrieve_usage_for_run")
async def retrieve_usage_for_run(
run_id: str,
headers: HeaderParams = Depends(get_headers),
server: "SyncServer" = Depends(get_letta_server),
@@ -215,9 +215,9 @@ async def retrieve_metrics_for_run(
@router.get(
"/{run_id}/steps",
response_model=List[Step],
operation_id="list_run_steps",
operation_id="list_steps_for_run",
)
async def list_run_steps(
async def list_steps_for_run(
run_id: str,
server: "SyncServer" = Depends(get_letta_server),
headers: HeaderParams = Depends(get_headers),
@@ -262,7 +262,7 @@ async def delete_run(
@router.post(
"/{run_id}/stream",
response_model=None,
operation_id="retrieve_stream",
operation_id="retrieve_stream_for_run",
responses={
200: {
"description": "Successful response",
@@ -292,7 +292,7 @@ async def delete_run(
}
},
)
async def retrieve_stream(
async def retrieve_stream_for_run(
run_id: str,
request: RetrieveStreamRequest = Body(None),
headers: HeaderParams = Depends(get_headers),