agentskit.js

WebSearchConfig

Auto-generated API reference for WebSearchConfig.

Interface: WebSearchConfig

Defined in: web-search.ts:11

#Properties

#apiKey?

optional apiKey?: string

Defined in: web-search.ts:18


#maxResults?

optional maxResults?: number

Defined in: web-search.ts:19


#provider?

optional provider?: WebSearchProvider

Defined in: web-search.ts:17

Which backend to use. 'auto' (default) picks the best available: Serper if SERPER_API_KEY is set, Tavily if TAVILY_API_KEY is set, otherwise falls back to an unauthenticated DuckDuckGo HTML scrape.


optional search?: (query) => Promise<WebSearchResult[]>

Defined in: web-search.ts:21

Custom search function — overrides every other path.

#Parameters

query

string

#Returns

Promise<WebSearchResult[]>

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page