How nvidia-ai-blueprints/deep-researcher-agent works
Deep Researcher Agent is a self-hosted, governed research backend with CLI, web UI, REST/async-job, and public MCP entry points. The main flow classifies a request, selects shallow or structured deep research, uses configured research sources, and returns cited answers or reports; completed reports also support follow-up and delta research. The graph includes documented capabilities such as document/collection management, sandbox artifacts, per-user MCP auth, policy controls, and observability. Several links rely on README-level architecture descriptions because their implementing source was not sampled.
Main entry points: agent.py Deep research · context_aware_intent_router.py Intent routing · routes REST API · runner.py Async jobs
Components 22
User Interfaces
- Web UI
frontends/ui/src/features/chat - CLI
frontends/cli/cli.py - Public MCP
mcp/src/deep_researcher_mcp/server.py
API And Jobs
- REST API
frontends/deep_researcher_api/src/deep_researcher_api/routes - Async jobs
frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py - Job events
frontends/deep_researcher_api/src/deep_researcher_api/jobs/event_store.py
Research Workflow
- Intent routing
src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py - Shallow research
src/deep_researcher_agent/agents/shallow_researcher/agent.py - Deep research
src/deep_researcher_agent/agents/deep_researcher/agent.py - Source routing
src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py - Citation checks
src/deep_researcher_agent/common/citation_verification.py
Sources And Runtime
- Source registry
src/deep_researcher_agent/common/data_source_registry.py - Search sources
sources - Knowledge retrieval
sources/knowledge_layer/src - Documents and collections
src/deep_researcher_agent/fastapi_extensions/routes - Sandbox execution
src/deep_researcher_agent/agents/deep_researcher/sandbox - Artifact capture
src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py - Artifact storage
src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/store.py
Governance And Observability
- MCP OAuth
frontends/deep_researcher_api/src/deep_researcher_api/mcp_auth/provider.py - Policy middleware
src/deep_researcher_agent/guardrails - Relay observability
src/deep_researcher_agent/relay/logging.py
Other components
- Research user
Connections 25
- Research user → Web UI: asks research
README.md - Research user → CLI: submits query
README.md - Web UI → REST API: sends requests
README.md - CLI → Intent routing: runs workflow
README.md - REST API → Async jobs: submits jobs
README.md - Async jobs → Intent routing: runs workflow
README.md - Public MCP → Async jobs: manages research jobs
README.md - Intent routing → Shallow research: routes shallow
README.md - Intent routing → Deep research: routes deep
README.md - Deep research → Source routing: routes sources
README.md - Source routing → Source registry: resolves sources
src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py - Source registry → Search sources: selects tools
src/deep_researcher_agent/common/data_source_registry.py - Source registry → Knowledge retrieval: selects tools
README.md - Shallow research → Search sources: calls research tools
README.md - Deep research → Search sources: calls research tools
README.md - Deep research → Knowledge retrieval: retrieves knowledge
README.md - REST API → Documents and collections: serves documents
README.md - Deep research → Citation checks: verifies citations
README.md - Deep research → Sandbox execution: runs code skills
README.md - Sandbox execution → Artifact capture: captures outputs
README.md - Artifact capture → Artifact storage: persists files
src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py - Async jobs → Job events: records events
- REST API → MCP OAuth: authenticates MCP sources
README.md - Intent routing → Policy middleware: applies policy
README.md - Deep research → Relay observability: emits traces
README.md