WebSearchConfig.openai constructor

WebSearchConfig.openai({
  1. WebSearchContextSize contextSize = WebSearchContextSize.medium,
  2. WebSearchStrategy strategy = WebSearchStrategy.auto,
})

Create an OpenAI-optimized configuration

Implementation

factory WebSearchConfig.openai({
  WebSearchContextSize contextSize = WebSearchContextSize.medium,
  WebSearchStrategy strategy = WebSearchStrategy.auto,
}) =>
    WebSearchConfig(
      contextSize: contextSize,
      strategy: strategy,
      searchType: WebSearchType.web,
    );