← Back to Projects

Deep Research Agent

Live

May 2026 – Present

developer-tools
Deep Research Agent screenshot

Built to comprehensively demonstrate the OpenAI Agents SDK feature set: handoffs, input/output guardrails, agent-as-tool, structured Pydantic outputs, streamed orchestration via Runner.run_streamed(), the built-in WebSearchTool, a custom @function_tool for email delivery, per-agent ModelSettings, and tracing via OpenAI's platform. A coordinator routes vague queries through a clarification step; a planner decomposes the topic into five parallel searches; a writer synthesises a 1000-word markdown report, which an email agent formats as HTML and delivers via Resend. Deployed as a Gradio app on Hugging Face Spaces with a custom domain.

Design Decisions

Handoff-based agent topology rather than a static chain — the coordinator picks the next agent at runtime, enabling clarification of vague queries without adding latency to clear ones. Guardrails run as a lightweight LLM classifier (input) and a deterministic word-count/section check (output) so unsafe queries and low-quality reports short-circuit the pipeline before downstream cost is spent.

Highlights

Timeline

May 2026Started
May 2026Migrated email delivery from AWS SES to Resend after sandbox limits blocked external recipients
May 2026Deployed to Hugging Face Spaces with custom domain via Vercel-managed DNS
PresentPresent

AI / LLM

gpt-4o-mini

Infrastructure

hf-spaces

MLOps

openai-traces

Tech Stack

PythonOpenAI Agents SDKGradioPydanticResend

Metrics

6 agents + 2 guardrails

5 parallel web searches

Architecture

Deep Research Agent — Pipeline & Handoffs

Live Demo ↗