From 195d2e2014eebb57f8852a14795e069eaa0e6fa1 Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Fri, 5 Sep 2025 01:13:49 -0700 Subject: [PATCH] feat: add tool_resources to the productionPrompt for making and getting groups --- api/models/Prompt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/models/Prompt.js b/api/models/Prompt.js index d96780a038..3812ced4ca 100644 --- a/api/models/Prompt.js +++ b/api/models/Prompt.js @@ -51,6 +51,7 @@ const createGroupPipeline = (query, skip, limit) => { createdAt: 1, updatedAt: 1, 'productionPrompt.prompt': 1, + 'productionPrompt.tool_resources': 1, // 'productionPrompt._id': 1, // 'productionPrompt.type': 1, }, @@ -328,6 +329,7 @@ async function getListPromptGroupsByAccess({ createdAt: 1, updatedAt: 1, 'productionPrompt.prompt': 1, + 'productionPrompt.tool_resources': 1, }, }, );