From 44d70f8467a555f6711169eef8b60c27591653c0 Mon Sep 17 00:00:00 2001 From: Chandrapal Badshah Date: Thu, 24 Jul 2025 14:20:36 +0530 Subject: [PATCH] fix(lighthouse): update prompt and tool schema for checks tool (#8265) Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com> --- ui/lib/lighthouse/prompts.ts | 4 ++-- ui/types/lighthouse/checks.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/lib/lighthouse/prompts.ts b/ui/lib/lighthouse/prompts.ts index 925640aa7f..3dfcc8c965 100644 --- a/ui/lib/lighthouse/prompts.ts +++ b/ui/lib/lighthouse/prompts.ts @@ -127,8 +127,8 @@ You operate in an agent loop, iterating through these steps: - Fetches information related to: - All findings data across providers. Supports filtering by severity, status, etc. - Unique metadata values from findings - - Remediation for checks - - Check IDs supported by different provider types + - Available checks for a specific provider (aws, gcp, azure, kubernetes, etc) + - Details of a specific check including details about severity, risk, remediation, compliances that are associated with the check, etc ### roles_agent diff --git a/ui/types/lighthouse/checks.ts b/ui/types/lighthouse/checks.ts index 186eb6cae6..5c0aaaa455 100644 --- a/ui/types/lighthouse/checks.ts +++ b/ui/types/lighthouse/checks.ts @@ -10,5 +10,5 @@ export const checkSchema = z.object({ }); export const checkDetailsSchema = z.object({ - id: z.string(), + checkId: z.string(), });