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 and openai libraries. To install them, run the following command:

Example

Toolkit Params

Toolkit Functions

The old method aliases duckduckgo_search and duckduckgo_news were removed in Agno v3.0 — use web_search and search_news.

Developer Resources