Skip to main content

deep_research_agent

AI Agent Deep Research Agent Module This module provides the DeepResearchAgent class for automating complex research workflows using Deep Research APIs from multiple providers:
  • OpenAI: o3-deep-research, o4-mini-deep-research (via Responses API)
  • Gemini: deep-research-pro (via Interactions API)
The agent automatically detects the provider based on the model name and uses the appropriate API. Example:

Import

Classes

Citation

Represents a citation in the research report.

ReasoningStep

Represents a reasoning step in the research process.

WebSearchCall

Represents a web search call made during research.

CodeExecutionStep

Represents a code execution step during research.

MCPCall

Represents an MCP tool call during research.

FileSearchCall

Represents a file search call (Gemini-specific).

DeepResearchResponse

Complete response from a Deep Research query.

Provider

Supported Deep Research providers.

DeepResearchAgent

Agent for performing deep research using multiple provider APIs.

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents