add comment

This commit is contained in:
Medyan
2026-01-31 13:18:04 -05:00
parent ccb537696f
commit 683fff4fab
2 changed files with 1 additions and 4 deletions

View File

@@ -129,9 +129,6 @@ async def list_library_agents(
Agents WITH executions come first (sorted by most recent execution),
agents WITHOUT executions come last (sorted by creation date).
Uses updatedAt (not createdAt) because it reflects when the execution
completed or last progressed, showing recently-finished agents first.
"""
graph = agent.AgentGraph
if graph and graph.Executions and len(graph.Executions) > 0:

View File

@@ -119,7 +119,7 @@ def library_agent_include(
if include_executions:
agent_graph_include["Executions"] = {
"where": {"userId": user_id},
"order_by": {"updatedAt": "desc"},
"order_by": {"updatedAt": "desc"}, # Uses updatedAt because it reflects when the executioncompleted or last progressed
"take": execution_limit,
}