Skip to content

Commit

Permalink
Refine prompt for merging
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiaiyer91 committed Nov 13, 2024
1 parent d71b1e0 commit 9c367a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi-spec-writer/mastra/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9c367a8

Please sign in to comment.