Brave search
BraveSearchToolSpec #
Bases: BaseToolSpec
Brave Search tool spec.
Source code in llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/base.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
brave_search #
brave_search(query: str, search_lang: str = 'en', num_results: int = 5) -> [Document]
Make a query to the Brave Search engine to receive a list of results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The query to be passed to Brave Search. |
required |
search_lang |
str
|
The search language preference (ISO 639-1), default is "en". |
'en'
|
num_results |
int
|
The number of search results returned in response, default is 5. |
5
|
Returns:
Type | Description |
---|---|
[Document]
|
[Document]: A list of documents containing search results. |
Source code in llama-index-integrations/tools/llama-index-tools-brave-search/llama_index/tools/brave_search/base.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|