Duckduckgo
DuckDuckGoSearchToolSpec #
Bases: BaseToolSpec
DuckDuckGoSearch tool spec.
Source code in llama-index-integrations/tools/llama-index-tools-duckduckgo/llama_index/tools/duckduckgo/base.py
6 7 8 9 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 |
|
duckduckgo_instant_search #
duckduckgo_instant_search(query: str) -> List[Dict]
Make a query to DuckDuckGo api to receive an instant answer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The query to be passed to DuckDuckGo. |
required |
Source code in llama-index-integrations/tools/llama-index-tools-duckduckgo/llama_index/tools/duckduckgo/base.py
18 19 20 21 22 23 24 25 26 27 28 |
|
duckduckgo_full_search #
duckduckgo_full_search(query: str, region: Optional[str] = 'wt-wt', max_results: Optional[int] = 10) -> List[Dict]
Make a query to DuckDuckGo search to receive a full search results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The query to be passed to DuckDuckGo. |
required |
region
|
Optional[str]
|
The region to be used for the search in [country-language] convention, ex us-en, uk-en, ru-ru, etc... |
'wt-wt'
|
max_results
|
Optional[int]
|
The maximum number of results to be returned. |
10
|
Source code in llama-index-integrations/tools/llama-index-tools-duckduckgo/llama_index/tools/duckduckgo/base.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|