For more flexibility with multiple search backends (Google, Bing, Brave, Yandex, etc.), use WebSearchTools directly.
Prerequisites
The following example requires theddgs and openai libraries. To install them, run the following command:
Example
Toolkit Params
Toolkit Functions
For backward compatibility, the aliases
duckduckgo_search and duckduckgo_news are also available.