Method CreateWebSearch
CreateWebSearch(Provider, string)
Gets a new Web Search tool instance with the specified provider.
public static WebSearchTool CreateWebSearch(WebSearchTool.Provider provider, string apiKey = null)
Parameters
providerWebSearchTool.ProviderThe search provider to use.
apiKeystringThe API key for providers that require authentication.
Returns
CreateWebSearch(Options)
Gets a new Web Search tool instance with custom options.
public static WebSearchTool CreateWebSearch(WebSearchTool.Options options)
Parameters
optionsWebSearchTool.OptionsConfiguration options.