Share via


WebKernelBuilderExtensions.AddGoogleTextSearch Method

Definition

Register an ITextSearch instance with the specified service ID.

public static Microsoft.SemanticKernel.IKernelBuilder AddGoogleTextSearch(this Microsoft.SemanticKernel.IKernelBuilder builder, string searchEngineId, string apiKey, Microsoft.SemanticKernel.Plugins.Web.Google.GoogleTextSearchOptions? options = default, string? serviceId = default);
static member AddGoogleTextSearch : Microsoft.SemanticKernel.IKernelBuilder * string * string * Microsoft.SemanticKernel.Plugins.Web.Google.GoogleTextSearchOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddGoogleTextSearch (builder As IKernelBuilder, searchEngineId As String, apiKey As String, Optional options As GoogleTextSearchOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The IKernelBuilder to register the ITextSearch on.

searchEngineId
String

Google Search Engine ID (looks like "a12b345...")

apiKey
String

The API key credential used to authenticate requests against the Search service.

options
GoogleTextSearchOptions

Instance of GoogleTextSearchOptions to used when creating the GoogleTextSearch.

serviceId
String

An optional service id to use as the service key.

Returns

Applies to