fix copilot tool response validation

This commit is contained in:
ramnique 2025-02-05 16:12:49 +05:30
parent 3b29c27f2e
commit b6fc32d575

View file

@ -579,6 +579,11 @@ export async function getCopilotResponse(
const test = {
name: 'test',
description: 'test',
parameters: {
type: 'object',
properties: {},
required: [],
},
} as z.infer<typeof WorkflowTool>;
// iterate over each field in part.content.config_changes
// and test if the final object schema is valid