From 78e59fbf78b5736547f0b4fb80a5ab96fb470331 Mon Sep 17 00:00:00 2001 From: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com> Date: Mon, 11 Aug 2025 19:24:51 +0530 Subject: [PATCH] feat: update resource agent prompt --- ui/lib/lighthouse/prompts.ts | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/ui/lib/lighthouse/prompts.ts b/ui/lib/lighthouse/prompts.ts index 3dfcc8c965..a6c0df90e2 100644 --- a/ui/lib/lighthouse/prompts.ts +++ b/ui/lib/lighthouse/prompts.ts @@ -414,8 +414,7 @@ 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. -- Don't add empty filters in the function call.`; +- Mentioning all keys in the function call is mandatory. Don't skip any keys.`; const overviewAgentPrompt = `You are Prowler's Overview Agent, specializing in high-level security status information across providers and findings. @@ -468,11 +467,36 @@ const rolesAgentPrompt = `You are Prowler's Roles Agent, specializing in role an - Mentioning all keys in the function call is mandatory. Don't skip any keys. - Don't add empty filters in the function call.`; +const resourcesAgentPrompt = `You are Prowler's Resource Agent, specializing in fetching resource information within Prowler. + +## Available Tools + +- getResourcesTool: List available resource with filtering options +- getResourceTool: Get detailed information about a specific resource + +## Response Guidelines + +- Keep the response concise +- Only share information relevant to the query +- Answer directly without unnecessary introductions or conclusions +- Ensure all responses are based on tools' output and information available in the prompt + +## Additional Guidelines + +- Focus only on resource-related information +- Format resource IDs, permissions, and descriptions consistently + +## Tool Calling Guidelines + +- Mentioning all keys in the function call is mandatory. Don't skip any keys. +- Don't add empty filters in the function call.`; + export { complianceAgentPrompt, findingsAgentPrompt, overviewAgentPrompt, providerAgentPrompt, + resourcesAgentPrompt, rolesAgentPrompt, scansAgentPrompt, supervisorPrompt,