From 9c367a8e75e0c56874760e628bec6b0c951550fa Mon Sep 17 00:00:00 2001 From: Abhi Aiyer Date: Tue, 12 Nov 2024 17:16:29 -0800 Subject: [PATCH] Refine prompt for merging --- openapi-spec-writer/mastra/tools/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi-spec-writer/mastra/tools/index.ts b/openapi-spec-writer/mastra/tools/index.ts index 60979ef..0deb96a 100644 --- a/openapi-spec-writer/mastra/tools/index.ts +++ b/openapi-spec-writer/mastra/tools/index.ts @@ -157,7 +157,7 @@ async function generateSpec({ data, ctx }: IntegrationApiExcutorParams) { const mergedSpec = await agent?.({ prompt: `I have generated the following Open API specs: ${openapiResponses .map((r: any) => r?.args?.yaml) - .join("\n\n")} - merge them into a single spec.`, + .join("\n\n")} - merge them into a single spec. What I am giving you are all the fragments I need.`, }); if (Array.isArray(mergedSpec.toolCalls)) {