langchain.utilities.brave_search.BraveSearchWrapper¶
- class langchain.utilities.brave_search.BraveSearchWrapper(*, api_key: str, search_kwargs: dict = None, base_url: str = 'https://api.search.brave.com/res/v1/web/search')[source]¶
Bases:
BaseModelWrapper around the Brave search engine.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param api_key: str [Required]¶
The API key to use for the Brave search engine.
- param base_url = 'https://api.search.brave.com/res/v1/web/search'¶
The base URL for the Brave search engine.
- param search_kwargs: dict [Optional]¶
Additional keyword arguments to pass to the search request.