Skip to main content
Answer questions with real-time information by giving a single Agent a web search tool.
Web search agent using DuckDuckGo for real-time information gathering.

Quick Start

1

Simple Usage

Attach the search tool and ask a question.
2

With Configuration

Return structured search results with a Pydantic schema.

How It Works


Simple

Agents: 1 — Single agent with search tool handles query and summarization.

Workflow

  1. Receive search query
  2. Execute web search via DuckDuckGo
  3. Filter and summarize results
  4. Return formatted response

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Advanced Workflow (All Features)

Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.

Workflow

  1. Initialize session for resumable search context
  2. Configure SQLite persistence for search history
  3. Execute search with structured JSON output
  4. Store results in memory for follow-up queries
  5. Resume session to continue research

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Monitor / Verify

Cleanup

Features Demonstrated

Best Practices

Instruct it to include the URLs it used. Search answers without provenance are hard to verify and easy to distrust.
Tell the agent to synthesise findings into a concise answer rather than pasting raw snippets. Users want the takeaway, not ten links.
Set memory=True so the agent builds on earlier queries instead of re-searching the same ground on each turn.
For multi-source synthesis and long reports, hand off to the Research or Deep Research agents rather than a single search pass.
Synthesise multiple sources into a report.
Provider-native deep research for in-depth analysis.