GoogleConnector Constructors
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.
Overloads
| GoogleConnector(BaseClientService+Initializer, String, ILoggerFactory) |
Initializes a new instance of the GoogleConnector class. |
| GoogleConnector(String, String, ILoggerFactory) |
Initializes a new instance of the GoogleConnector class. |
GoogleConnector(BaseClientService+Initializer, String, ILoggerFactory)
Initializes a new instance of the GoogleConnector class.
public GoogleConnector(Google.Apis.Services.BaseClientService.Initializer initializer, string searchEngineId, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Plugins.Web.Google.GoogleConnector : Google.Apis.Services.BaseClientService.Initializer * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Plugins.Web.Google.GoogleConnector
Public Sub New (initializer As BaseClientService.Initializer, searchEngineId As String, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- initializer
- Google.Apis.Services.BaseClientService.Initializer
The connector initializer
- searchEngineId
- String
Google Search Engine ID (looks like "a12b345...")
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.
Applies to
GoogleConnector(String, String, ILoggerFactory)
Initializes a new instance of the GoogleConnector class.
public GoogleConnector(string apiKey, string searchEngineId, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Plugins.Web.Google.GoogleConnector : string * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Plugins.Web.Google.GoogleConnector
Public Sub New (apiKey As String, searchEngineId As String, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- apiKey
- String
Google Custom Search API (looks like "ABcdEfG1...")
- searchEngineId
- String
Google Search Engine ID (looks like "a12b345...")
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.