mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-01 18:35:00 -05:00
add comment
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user