WebSearchConfig.openRouter constructor

WebSearchConfig.openRouter({
  1. int maxResults = 5,
  2. String? searchPrompt,
  3. bool useOnlineShortcut = true,
})

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,
    );