WebKernelBuilderExtensions.AddBingTextSearch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Register an ITextSearch instance with the specified service ID.
public static Microsoft.SemanticKernel.IKernelBuilder AddBingTextSearch(this Microsoft.SemanticKernel.IKernelBuilder builder, string apiKey, Microsoft.SemanticKernel.Plugins.Web.Bing.BingTextSearchOptions? options = default, string? serviceId = default);
static member AddBingTextSearch : Microsoft.SemanticKernel.IKernelBuilder * string * Microsoft.SemanticKernel.Plugins.Web.Bing.BingTextSearchOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddBingTextSearch (builder As IKernelBuilder, apiKey As String, Optional options As BingTextSearchOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The IKernelBuilder to register the ITextSearch on.
- apiKey
- String
The API key credential used to authenticate requests against the Search service.
- options
- BingTextSearchOptions
Instance of BingTextSearchOptions to used when creating the BingTextSearch.
- serviceId
- String
An optional service id to use as the service key.