WebSearchConfig.openRouter constructor
WebSearchConfig.openRouter({})
Create an OpenRouter-optimized configuration
Implementation
factory WebSearchConfig.openRouter({
int maxResults = 5,
String? searchPrompt,
bool useOnlineShortcut = true,
}) =>
WebSearchConfig(
maxResults: maxResults,
searchPrompt: searchPrompt,
strategy: useOnlineShortcut
? WebSearchStrategy.plugin
: WebSearchStrategy.plugin,
searchType: WebSearchType.web,
);