GoogleWebSearchService
Wisej.AI.Services.GoogleWebSearchService
Last updated
Wisej.AI.Services.GoogleWebSearchService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a web search service using Google's Custom Search API.
This class extends the to provide functionality for performing web searches using Google's Custom Search API.
Initializes a new instance of the class.
engineID
The unique identifier for the search engine.
url
The base URL for the Google Custom Search API. Default is "https://www.googleapis.com/customsearch/v1".
This property returns null
as authentication is handled via API keys in the request URL.
Performs an asynchronous web search using the specified query.
query
The search query string.
This method sends a request to the Google Custom Search API and processes the response to extract and format the search results.
Represents a service for performing web searches.
: Gets the authentication method for the service. (Default: "api-key"
)
Returns: . A task that represents the asynchronous operation. The task result contains the search results as a formatted string.