Skip to main content
DuckDuckGoTools is a convenience wrapper around WebSearchTools with the backend defaulting to DuckDuckGo. It enables an Agent to search the web for information using the DuckDuckGo search engine.
For more flexibility with multiple search backends (Google, Bing, Brave, Yandex, etc.), use WebSearchTools directly.

Prerequisites

The following example requires the ddgs library. To install DuckDuckGo, run the following command:

Example

Toolkit Params

Toolkit Functions

For backward compatibility, the aliases duckduckgo_search and duckduckgo_news are also available.

Developer Resources