Skip to main content
Research any topic end-to-end — search, analyse, and synthesise — with a single Agent using web search tools.
Research agent with web search for comprehensive topic analysis and report generation.
This page uses a plain Agent with a search tool — a flexible custom research recipe. For provider-native Deep Research (OpenAI / Gemini) with the DeepResearchAgent class, see the Deep Research page.

Quick Start

1

Simple Usage

Attach a search tool and pose a research question.
2

With Configuration

Return a structured report with a Pydantic schema.

How It Works


Simple

Agents: 1 — Single agent handles search, analysis, and synthesis.

Workflow

  1. Receive research topic
  2. Search web for relevant sources
  3. Analyze and synthesize findings
  4. Generate structured report

Setup

Run — Python

Run — CLI

Model used by the research-assistant intermediary

Deep research runs a primary researcher agent and a small “research-assistant” intermediary that gathers initial information using tools. The intermediary honours the same cascade as the rest of the CLI:
The intermediary consumes tool-call turns. Running it on your main model can raise cost on long research runs — pin it back to gpt-4o-mini by setting OPENAI_MODEL_NAME=gpt-4o-mini and leaving --model unset.

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 research context
  2. Configure SQLite persistence for research history
  3. Execute multi-source search with structured output
  4. Store findings 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 the agent to list the URLs it used. Research without provenance is hard to trust and impossible to verify.
Define a Pydantic schema with summary, key_findings, and sources so the report renders consistently and feeds downstream tools.
Deep research runs an assistant that consumes tool-call turns. Set OPENAI_MODEL_NAME=gpt-4o-mini for that helper to avoid inflating cost on long runs.
For OpenAI or Gemini deep-research APIs with built-in browsing, use the DeepResearchAgent class rather than this search-tool recipe.

Provider-native deep research with the DeepResearchAgent class.

Analyze datasets to support data-driven research.