BraveWebSearchService
Wisej.AI.Services.BraveWebSearchService
Last updated
Wisej.AI.Services.BraveWebSearchService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a service for performing web searches using the Brave search engine.
This class extends the to provide specific implementations for the Brave search engine.
Initializes a new instance of the class with the specified URL.
url
The base URL for the Brave search API. Default is "https://api.search.brave.com/res/v1/web/search".
: Gets the authentication header name used for the Brave search API. (Default: "api-key"
)
This property returns the string "X-Subscription-Token", which is used as the authentication header for API requests.
Performs an asynchronous web search using the specified query.
query
The search query string.
This method sends a GET request to the Brave search API with the specified query and processes the response to extract and format the search results.
Represents a service for performing web searches.
Returns: . A task that represents the asynchronous operation. The task result contains the search results as a formatted string.