mirascope.tools.web._duckduckgo¶
DuckDuckGoSearchConfig
¶
Bases: _ConfigurableToolConfig
Configuration for DuckDuckGo search
DuckDuckGoSearch
¶
Bases: _BaseDuckDuckGoSearch
Tool for performing web searches using DuckDuckGo.
Takes search queries and returns relevant search results(Title, URL, Snippet).
call
¶
call() -> str
Perform a web search using DuckDuckGo and return formatted results.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
Formatted search results if successful, error message if search fails |
Source code in mirascope/tools/web/_duckduckgo.py
AsyncDuckDuckGoSearch
¶
Bases: _BaseDuckDuckGoSearch
Tool for performing web searches using DuckDuckGo.
Takes search queries and returns relevant search results(Title, URL, Snippet).
call
async
¶
call() -> str
Perform an asynchronous web search using DuckDuckGo and return formatted results.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
Formatted search results if successful, error message if search fails |