Overview
The DuckDuckGo Search tool is a tool that allows you to search the web using the DuckDuckGo search engine.How It Works
Getting Started
Simple Usage
- Install dependencies (see Overview above)
- Set required API keys in your environment
- Run the agent example in Overview
Best Practices
No API key needed
No API key needed
The built-in
duckduckgo tool ships with praisonaiagents and needs no provider key — only OPENAI_API_KEY for the agent’s LLM.Cap results with max_results
Cap results with max_results
The underlying
internet_search(query, max_results=5) defaults to 5 results. Lower it for faster, cheaper agent loops when you only need the top hits.Retries are built in
Retries are built in
The tool retries up to 3 times with backoff on transient failures. For persistent empty results, fall back to another search tool in the agent’s toolset.
Related Tools
Tavily
AI-powered search
Brave Search
Brave Search API
Serper
Google search API

