跳到正文
原文
Google AI:DEV 作者专属(RSS)· Mikhail Savchenko·· 3 小时前AI 评分55

Cloudflare 为 AI Gateway 新增 Web Search API 用于为 Agent 回答接入实时网络结果

Cloudflare Adds Web Search to AI Gateway for Grounding Agent Responses

AI 导读

Cloudflare 在 AI Gateway 中新增原生 Web Search API,与 Ceramic.ai、Exa 和 Linkup 合作构建,可在推理时把实时网络结果拉入模型上下文窗口,弥补模型训练截止后无法回答近期事件的缺口。

正文

Mikhail Savchenko

Cloudflare has added a native Web Search API to its AI Gateway, built in partnership with search providers Ceramic.ai, Exa, and Linkup. The feature lets developers pull live web results into a model's context window during inference, addressing the gap where models are frozen at a training cutoff and can't speak to recent events or changing documentation.

Three access paths are available: directly through AI Gateway, via a standard REST endpoint (passing an AI Gateway auth token and a provider name in the request payload), or through a Workers binding that Cloudflare says takes one line of code to call. Requests appear in the same AI Gateway observability logs as model inference calls, and usage draws down from the existing AI Gateway credit balance. Cloudflare says it is offering the search at list API pricing from partners with no added markup, and supports Bring-Your-Own-Key setups for organizations with existing provider accounts. The company also says it will flag which partners support Zero Data Retention so users know their queries aren't being stored.

Crawling behind the search results is tied to Cloudflare's bot policy: partner crawlers must meet Cloudflare's published "Verified bots" requirements, and every web search response must link back to the source of the crawled content.

Cloudflare also previewed upcoming "Server Tools" built directly into AI Gateway, which would remove the need for developers to define tool-calling logic themselves; web search is slated to be among the first tools included. Until then, Cloudflare published a Workers code sample showing how to wire web search into a tool-calling loop manually.

来源:Google AI:DEV 作者专属(RSS) · dev.to