Skip to content

Commit 6ab52f0

Browse files
committed
mermaid diagrams
1 parent 515df3c commit 6ab52f0

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

examples/deep_research_api/introduction_to_deep_research_api.ipynb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,47 @@
454454
"\n",
455455
"This setup gives developers full control over how research tasks are framed, but also places greater responsibility on the quality of the input prompt. Here's an example of a generic rewriting_prompt to better direct the subsequent deep research query.\n",
456456
"\n",
457+
"```mermaid\n",
458+
"flowchart TD\n",
459+
" %% Interactive ChatGPT Flow with Clarifier\n",
460+
" subgraph ChatGPT Session\n",
461+
" direction TB\n",
462+
" U1([User Query])\n",
463+
" C[Clarifier<br/>lightweight model]\n",
464+
" Q[Clarifying Questions]\n",
465+
" UQ([User’s Answers])\n",
466+
" R[Rewriter<br/>lightweight model]\n",
467+
" EP[Enriched Prompt]\n",
468+
" DR[Deep Research<br/>o3-deep-research]\n",
469+
" O[Research Results]\n",
470+
"\n",
471+
" U1 --> C\n",
472+
" C --> Q\n",
473+
" Q --> UQ\n",
474+
" UQ --> R\n",
475+
" R --> EP\n",
476+
" EP --> DR\n",
477+
" DR --> O\n",
478+
" end\n",
479+
"\n",
480+
" %% Deep Research API Flow (no built-in clarifier)\n",
481+
" subgraph Deep Research API\n",
482+
" direction TB\n",
483+
" U2([User Query])\n",
484+
" R2[Rewriter<br/>optional]\n",
485+
" EP2[Enriched Prompt]\n",
486+
" DR2[Deep Research API<br/>o3-deep-research]\n",
487+
" O2[Research Results]\n",
488+
"\n",
489+
" U2 -->|include all details up-front| EP2\n",
490+
" EP2 --> DR2\n",
491+
" DR2 --> O2\n",
492+
"\n",
493+
" U2 -->|use prompt rewriter| R2\n",
494+
" R2 --> EP2\n",
495+
" end\n",
496+
"```\n",
497+
"\n",
457498
"Here's an example of a rewriting prompt:"
458499
]
459500
},

examples/deep_research_api/introduction_to_deep_research_api_agents.ipynb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,27 @@
260260
" - Streams intermediate events for transparency\n",
261261
" - Outputs final Research Artifact (which we later parse)\n",
262262
"\n",
263+
"```mermaid\n",
264+
"flowchart LR\n",
265+
" subgraph Triage\n",
266+
" TA[Triage Agent<br/>• Inspect query<br/>• Route based on context]\n",
267+
" end\n",
268+
" subgraph Clarifier\n",
269+
" CA[Clarifier Agent<br/>• Ask follow‐up questions<br/>• Receive answers]\n",
270+
" end\n",
271+
" subgraph Instruction\n",
272+
" IA[Instruction Builder Agent<br/>• Build precise research brief]\n",
273+
" end\n",
274+
" subgraph Research\n",
275+
" RA[Research Agent<br/> o3‐deep‐research <br/>• WebSearchTool<br/>• Internal MCP search<br/>• Stream events<br/>• Output Artifact]\n",
276+
" end\n",
277+
"\n",
278+
" TA -->|Missing context| CA\n",
279+
" TA -->|Context OK| IA\n",
280+
" CA --> IA\n",
281+
" IA --> RA\n",
282+
"```\n",
283+
"\n",
263284
"For more insight into _how_ the MCP server is build. [See this resource.](https://cookbook.openai.com/examples/deep_research_api/how_to_build_a_deep_research_mcp_server/README )"
264285
]
265286
},

0 commit comments

Comments
 (0)