DeepResearchAgent.
Quick Start
How It Works
Workflow
- Receive research query
- Execute web searches via provider API
- Perform multi-step reasoning
- Generate comprehensive report with citations
Setup
Run β Python
Run β CLI
Run β agents.yaml
Serve API
OpenAI Deep Research
Gemini Deep Research
Features
Multi-Provider
Supports OpenAI, Gemini, and LiteLLM providers.
Real-time Streaming
See reasoning summaries and web searches as they happen.
Structured Citations
Get citations with titles and URLs.
Auto Detection
Provider automatically detected from model name.
Streaming Output
Streaming is enabled by default. You will see:- π Reasoning summaries
- π Web search queries
- Final report text
Response Structure
Available Models
| Provider | Models |
|---|---|
| OpenAI | o3-deep-research, o4-mini-deep-research |
| Gemini | deep-research-pro |
Configuration Options
With Custom Instructions
Accessing Citations
Monitor / Verify
Cleanup
Features Demonstrated
| Feature | Implementation |
|---|---|
| Workflow | Multi-step reasoning with web search |
| Observability | --verbose flag, streaming output |
| Tools | Built-in web search via provider API |
| Resumability | interaction_id for Gemini follow-ups |
| Structured Output | Citations with titles and URLs |
Best Practices
Match the model to the provider
Match the model to the provider
o3-deep-research and o4-mini-deep-research route to OpenAI; deep-research-pro routes to Gemini. The provider is auto-detected from the model name, so pick the one whose API key you have set.Set a generous max_wait_time for hard questions
Set a generous max_wait_time for hard questions
Deep research runs multiple search-and-reason cycles. Raise
max_wait_time for broad topics so the agent isnβt cut off mid-report.Always surface the citations
Always surface the citations
Every result carries
citations with titles and URLs. Render them so users can verify claims β that traceability is the whole point of deep research.Use the plain Research Agent for lightweight queries
Use the plain Research Agent for lightweight queries
For quick, cheap look-ups, a plain Agent with a search tool is faster and cheaper. Reserve
DeepResearchAgent for questions that genuinely need multi-step reasoning.Related
A lighter search-tool research recipe using a plain Agent.
Single-pass web search for quick answers.

