From a75539d48139271cbc18317d6deba91c884b88ab Mon Sep 17 00:00:00 2001 From: AnotiaWang Date: Thu, 20 Feb 2025 14:54:08 +0800 Subject: [PATCH] fix(deep-research): JSON reserved words should be escaped --- lib/deep-research.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deep-research.ts b/lib/deep-research.ts index 87ebfe5..3737741 100644 --- a/lib/deep-research.ts +++ b/lib/deep-research.ts @@ -98,7 +98,7 @@ export function generateSearchQueries({ researchGoal: z .string() .describe( - 'First talk about the goal of the research that this query is meant to accomplish, then go deeper into how to advance the research once the results are found, mention additional research directions. Be as specific as possible, especially for additional research directions.', + 'First talk about the goal of the research that this query is meant to accomplish, then go deeper into how to advance the research once the results are found, mention additional research directions. Be as specific as possible, especially for additional research directions. JSON reserved words should be escaped.', ), }) .required({ query: true, researchGoal: true }),