Add enterprise options to search parameters

Introduces an optional 'enterprise' parameter to the search API, allowing users to specify 'zdr' for zero data retention or 'anon' for anonymous mode. Updates documentation to describe these new options.
This commit is contained in:
Leonardo Grigorio
2025-12-18 15:18:10 -03:00
parent d89c64a186
commit a9b6bf7101
+2
View File
@@ -418,6 +418,7 @@ The query also supports search operators, that you can use if needed to refine t
}
\`\`\`
**Returns:** Array of search results (with optional scraped content).
**Enterprise:** Use \`enterprise: ["zdr"]\` for zero data retention (no logging, 5x credits) or \`["anon"]\` for anonymous mode (no logging).
`,
parameters: z.object({
query: z.string().min(1),
@@ -429,6 +430,7 @@ The query also supports search operators, that you can use if needed to refine t
.array(z.object({ type: z.enum(['web', 'images', 'news']) }))
.optional(),
scrapeOptions: scrapeParamsSchema.omit({ url: true }).partial().optional(),
enterprise: z.array(z.enum(['default', 'anon', 'zdr'])).optional(),
}),
execute: async (
args: unknown,