We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f754531 commit 5df6ad7Copy full SHA for 5df6ad7
api/models/Agent.js
@@ -445,6 +445,16 @@ const getListAgents = async (searchParameter) => {
445
agent.author = agent.author.toString();
446
}
447
return agent;
448
+ }).sort((a, b) => {
449
+ // Prioritize "Eve - Automation Expert" agent first
450
+ const isAEve = a.name?.toLowerCase().includes('eve') && a.name?.toLowerCase().includes('automation');
451
+ const isBEve = b.name?.toLowerCase().includes('eve') && b.name?.toLowerCase().includes('automation');
452
+
453
+ if (isAEve && !isBEve) return -1;
454
+ if (!isAEve && isBEve) return 1;
455
456
+ // For other agents, maintain original order (no change)
457
+ return 0;
458
});
459
460
const hasMore = agents.length > 0;
0 commit comments