From b6fc32d575f6238c17eff73e8c4dab87d0444959 Mon Sep 17 00:00:00 2001 From: ramnique <30795890+ramnique@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:12:49 +0530 Subject: [PATCH] fix copilot tool response validation --- apps/rowboat/app/actions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/rowboat/app/actions.ts b/apps/rowboat/app/actions.ts index 6e6f9998..7f5d6fde 100644 --- a/apps/rowboat/app/actions.ts +++ b/apps/rowboat/app/actions.ts @@ -579,6 +579,11 @@ export async function getCopilotResponse( const test = { name: 'test', description: 'test', + parameters: { + type: 'object', + properties: {}, + required: [], + }, } as z.infer; // iterate over each field in part.content.config_changes // and test if the final object schema is valid