fix: remove unused think property from serpCluster schema

This commit is contained in:
Han Xiao 2025-06-17 18:44:10 -07:00
parent c1f8f9525d
commit 74f521bec8
2 changed files with 0 additions and 2 deletions

View File

@ -29,7 +29,6 @@ export async function serpCluster(results: SearchSnippet[], trackers: TrackerCon
system: prompt.system,
prompt: prompt.user,
});
trackers?.actionTracker.trackThink(result.object.think);
const clusters = result.object.clusters;
logInfo(TOOL_NAME, { clusters });
return clusters;

View File

@ -176,7 +176,6 @@ export class Schemas {
getSerpClusterSchema(): z.ZodObject<any> {
return z.object({
think: z.string().describe(`Explain why you cluster the search results like this. ${this.getLanguagePrompt()}`).max(500),
clusters: z.array(
z.object({
insight: z.string().describe('Summary and list key numbers, data, soundbites, and insights that worth to be highlighted. End with an actionable advice such as "Visit these URLs if you want to understand [what...]". Do not use "This cluster..."').max(200),