Prerequisites
The following examples requires thebrave-search library.
Example
cookbook/tools/bravesearch_tools.py
Toolkit Params
| Parameter | Type | Default | Description | 
|---|---|---|---|
| fixed_max_results | int | None | Optional fixed maximum number of results to return. | 
| fixed_language | str | None | Optional fixed language for the requests. | 
Toolkit Functions
| Function | Description | 
|---|---|
| brave_search | Searches Brave for a specified query. Parameters include queryfor the search term,max_resultsfor the maximum number of results (default is 5),countryfor the geographic region (default is “US”) of the search results andlanguagefor the language of the search results (default is “en”). Returns the search results as a JSON formatted string. |