From a5b59bc34653d5a24b200b192de364772fe3b30d Mon Sep 17 00:00:00 2001 From: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com> Date: Mon, 11 Aug 2025 19:27:07 +0530 Subject: [PATCH] fix: update findings prompt for better tool call --- ui/lib/lighthouse/prompts.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/lib/lighthouse/prompts.ts b/ui/lib/lighthouse/prompts.ts index a6c0df90e2..f9c130795d 100644 --- a/ui/lib/lighthouse/prompts.ts +++ b/ui/lib/lighthouse/prompts.ts @@ -414,7 +414,10 @@ const findingsAgentPrompt = `You are Prowler's Findings Agent, specializing in s ## Tool Calling Guidelines -- Mentioning all keys in the function call is mandatory. Don't skip any keys.`; +- Mentioning all keys in the function call is mandatory. Don't skip any keys. +- Don't add empty filters in the function call. +- Use only available filters and sort options. Ensure you enclose filter with \`filter[]\`. +- When user asks for a particular check, use getProviderChecksTool tool to get the correct check ID. Only pass check IDs selected from the tool output to subsequent tools.`; const overviewAgentPrompt = `You are Prowler's Overview Agent, specializing in high-level security status information across providers and findings.