Skip to main content
Prerequisites
  • Python 3.10 or higher
  • PraisonAI Agents package installed
  • duckduckgo-search package installed
The user needs fresh web results; DuckDuckGo tools fetch answers without a separate search API key.

DuckDuckGo Tools

Use DuckDuckGo Tools to perform internet searches with AI agents.
1

Install Dependencies

First, install the required packages:
2

Import Components

Import the necessary components:
3

Create Agent

Create a search agent:
4

Define Task

Define the search task:
5

Run Agent

Initialize and run the agent:

Understanding DuckDuckGo Tools

What are DuckDuckGo Tools?

DuckDuckGo Tools provide internet search capabilities for AI agents:
  • Web search functionality
  • News search
  • Privacy-focused results
  • Region-specific searches

Key Components

Search Agent

Create specialized search agents:

Search Task

Define search tasks:

Process Types

Sequential or parallel processing:

Search Options

Customize search parameters:

Examples

Basic Search Agent

Advanced Search with Multiple Agents

Best Practices

Configure agents with clear roles and goals:
Define specific and clear tasks:

Common Patterns

Research and Analysis