Skip to content

Deep Research Runtime Reference

runtime

Runtime helpers for the top-level deep-research workflow.

deep_research_agent_context async

deep_research_agent_context(*, persistent=False, setup_persistence=False, context=None, debug=False)

Yield a deep-research agent with in-memory or Postgres-backed state.

run_deep_research async

run_deep_research(question, *, persistent=False, setup_persistence=False, context=None, debug=False)

Run the top-level deep-research workflow and return its final state.

graph

Top-level LangGraph workflow for the deep-research agent.

SupportsInvoke

Bases: Protocol

Protocol for child agents invoked by the top-level graph.

invoke

invoke(input, *, context, config)

Invoke the child agent.

build_deep_research_graph

build_deep_research_graph(*, planner_agent=None, query_agent=None, retrieval_agent=None, reflection_agent=None, answer_agent=None, checkpointer=None, store=None, debug=False)

Build the compiled top-level deep-research graph.