Skip to main content

Function: withSearchResultBlocks()

withSearchResultBlocks(base?): {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: packages/core/src/utils/tool-content.ts:119

A fetch for AI SDK's Anthropic provider that sends carried search results as real search_result blocks. Any other request passes through untouched.

Parameters​

base?​

{(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Returns​

(input, init?): Promise<Response>

MDN Reference

Parameters​

input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

Parameters​

input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>