Constructor WebSearchTool
WebSearchTool()
Initializes a new instance with default settings (DuckDuckGo provider, no API key required).
public WebSearchTool()
WebSearchTool(Provider, string)
Initializes a new instance with the specified provider and API key.
public WebSearchTool(WebSearchTool.Provider provider, string apiKey = null)
Parameters
providerWebSearchTool.ProviderThe search provider to use.
apiKeystringThe API key for providers that require authentication.
WebSearchTool(Options)
Initializes a new instance with custom options.
public WebSearchTool(WebSearchTool.Options options)
Parameters
optionsWebSearchTool.OptionsConfiguration options.
WebSearchTool(HttpClient, Options)
Initializes a new instance with an existing HttpClient.
public WebSearchTool(HttpClient client, WebSearchTool.Options options = null)
Parameters
clientHttpClientThe HttpClient to use.
optionsWebSearchTool.OptionsConfiguration options.