Skip to main content
The user asks for current information; the agent searches the web with DuckDuckGo and cites findings.

DuckDuckGo Praison AI Integration

Create a file called tools.py in the same directory as the agents.yaml file.

Quick Start

1

Install

2

Search with agent

Best Practices

DuckDuckGo requires no API key - use it as the zero-cost fallback provider in search_web.
DuckDuckGo returns best results in the first 5 hits - higher limits add noise.
Prefer from praisonaiagents import search_web for automatic fallback across providers.
Use specific, descriptive queries rather than broad terms for better DuckDuckGo results.

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation