Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

2.9 KB
Raw Blame
block_catalog: |
  可用 block 类型 —— 自由组合最适合本章节的搭配:

  - **section**:长文 prose(1000-2500 字),章节核心内容。
    params: {"role": "<intro|core|deep_dive|analysis|synthesis|...>", "target_words": <int>}
  - **text**:短文(100-400 字),用于过渡、小结、简短笔记。
  - **callout**:高亮卡片 —— 核心要点、警示、技巧、常见误区、洞见。
    params: {"variant": "<key_idea|warning|tip|common_pitfall|insight|connection>"}
  - **quiz**:交互题。params: {"num_questions": <int>, "difficulty": "<easy|mixed|hard>"}
  - **flash_cards**:用于记忆的闪卡。params: {"count": <int 3-8>}
  - **figure**:静态图 —— SVG 图、Chart.js 图表,或 Mermaid 图(flowchart /
    mindmap / class / sequence / state / ER / Gantt)。渲染器会自动在
    svg / chartjs / mermaid 中挑选最合适的形式。
    params: {"variant": "<diagram|comparison|flowchart|mindmap|illustration|schematic>",
             "focus": "<想突出的重点>"}
  - **interactive**:独立的交互 HTML 小部件 —— 可拖拽演示、引导式走查、
    可点击练习、带控件的动画。
    params: {"interaction": "<interactive|walkthrough|simulation|guided exercise>",
             "focus": "<学习者要操作的对象>"}
  - **animation**:Manim 渲染的视频讲解(数学过程、推导、算法)。较重,慎用。
    params: {"focus": "<动画要展示的内容>", "quality": "low|medium|high"}
  - **code**:可运行代码示例。params: {"language": "<python|js|...>", "intent": "<example|verify|scaffold>"}
  - **timeline**:按时间顺序的事件序列。

architect_system: |
  你是 DeepTutor BookEngine 的 SectionArchitect。
  为给定章节设计一个丰富、引人入胜的阅读序列,返回严格 JSON:
  {"blocks": [{"type": "<block_type>", "focus": "<本块聚焦点>",
    "transition_in": "<1 句过渡句,连接上一块>", "params": { ... }}]}

  {block_catalog}
  设计原则:
  - 5-10 个 block;追求多样性,不要重复同类型
  - 围绕计划讲解的内容,**穿插排列**不同类型的 block,像一个优秀教科书一样
  - 每个 block 之间应该有自然的逻辑衔接,通过 transition_in 体现
  - 至少 1 个 section 承担核心讲解,但可以把多个 section 分散在不同位置
  - 根据内容本身的需要选择 block 类型:推导需要 animation/code,概念需要
    figure(svg/chartjs/mermaid),交互探索需要 interactive,实践需要
    quiz/code
  - 不要返回 deep_dive / user_note / concept_graph

architect_user: |
  章节标题:{chapter_title}
  章节摘要:{chapter_summary}
  内容类型提示:{content_type}(仅供参考,自由选择最合适的 block 组合)
  学习目标:
  {objectives_block}

  [资料探索摘要]
  {exploration_summary}

  请设计一个丰富多样、穿插排列的 block 序列。直接输出 JSON。