Skip to content

Variable: webSearchResultSchema

const webSearchResultSchema: ZodObject<{ answer: ZodString; citations: ZodArray<ZodObject<{ snippet: ZodOptional<ZodString>; title: ZodOptional<ZodString>; url: ZodString; }, $strip>>; model: ZodString; query: ZodString; }, $strip>

Schema for the web_search tool output.

  • query: Echo of the query that was searched.
  • answer: The model’s answer, synthesized from live web results.
  • citations: Sources the answer drew on. When an allow-list is configured, citations whose URL is not permitted are silently omitted.
  • model: The serving endpoint that produced the answer.