DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
docs:update readme
Bingxi Zhao (Frank)ed05ab4e2b7e
diff --git a/README.md b/README.mdindex b685c1689..0108b23c6 100644--- a/README.md+++ b/README.md@@ -34,7 +34,7 @@[](./Communication.md)[](https://github.com/HKUDS/DeepTutor/issues/78)-[Features](#-key-features) · [Get Started](#-get-started) · [Explore](#-explore-deeptutor) · [CLI](#%EF%B8%8F-deeptutor-cli--agent-native-interface) · [Community](#-community)+[Features](#-key-features) · [Get Started](#-get-started) · [Explore](#-explore-deeptutor) · [CLI](#%EF%B8%8F-deeptutor-cli--agent-native-interface) · [Ecosystem](#-ecosystem--open-to-the-skills-community) · [Community](#-community)</div>@@ -147,13 +147,13 @@## ✨ Key Features-DeepTutor is an agent-native learning workspace: Chat, Solve, Quiz, Research, Visualize, and Mastery Path run on one extensible tutoring runtime.+DeepTutor is an agent-native learning workspace that connects tutoring, problem solving, quiz generation, research, visualization, and mastery practice in one extensible system.-- **Multiple learning modes, one tutor runtime** — move between flexible chat, step-by-step solving, auto-validated quiz generation, multi-agent research, visual explanation, and mastery-based tutoring without switching systems.-- **Connected learning workspace** — Knowledge Bases, Book pages, Co-Writer drafts, Space assets, notebooks, and Memory give the tutor reusable context instead of scattering learning materials across isolated tools.-- **Extensible tool and skill ecosystem** — DeepTutor can use built-in tools, MCP tools, built-in skills, and community skills from ClawHub, so the tutor can grow with new workflows instead of being limited to a fixed feature set.-- **Inspectable long-term memory** — L1 traces, L2 surface summaries, and L3 cross-surface synthesis make personalization visible, editable, and traceable.-- **Persistent Partners** — IM-connected companions run on the same DeepTutor agent loop, each with its own soul, channels, workspace, and assigned library.+- **One runtime for every mode** — Chat, Solve, Quiz, Research, Visualize, and Mastery Path share the same tutoring engine, so context can move with the learner.+- **Connected learning context** — Knowledge Bases, books, Co-Writer drafts, Space assets, notebooks, and Memory stay available across workflows instead of living in isolated tools.+- **Extensible tools and skills** — Built-in tools, MCP tools, built-in skills, and installable community skills let DeepTutor grow with new learning workflows.+- **Inspectable memory** — L1 traces, L2 surface summaries, and L3 synthesis make personalization visible, editable, and grounded in prior activity.+- **Persistent Partners** — IM-connected companions run on the same agent loop, each with its own soul, channels, workspace, and assigned library.---@@ -401,7 +401,7 @@ Project-root `.env` is **not** read as an application config file. For a minimal## 📖 Explore DeepTutor-The README tour follows the product surfaces in the order you will most often meet them: Chat, Partner, Co-Writer, Book, Knowledge, Space, Memory, and Settings. The screenshots below come from the reorganized `assets/figs` tree; archived legacy images are intentionally not used here.+Start with the main surfaces you will use day to day: Chat, Partners, Co-Writer, Book, Knowledge, Space, Memory, and Settings. The tour then covers Multi-User deployments for shared, isolated workspaces.<div align="center"><img src="assets/figs/system/system%20architecture.png" alt="DeepTutor system architecture" width="900">@@ -564,16 +564,39 @@ The **first registered user becomes admin** and owns model catalogs, provider cr## ⌨️ DeepTutor CLI — Agent-Native Interface-DeepTutor is CLI-native: the same `deeptutor` entry point can initialize a workspace, start the web app, run a one-shot capability, open an interactive REPL, manage knowledge bases, inspect sessions, maintain books, and operate partners.+One `deeptutor` binary, two ways in: an interactive **REPL** for people who live in the terminal, and structured **JSON** for other agents that drive DeepTutor as a tool. Same capabilities, tools, and knowledge bases either way.++### Drive it yourself++`deeptutor chat` opens an interactive REPL; `deeptutor run <capability> "<message>"` fires a single turn and exits. Both speak the same `--capability`, `--tool`, `--kb`, and `--config` flags.```bash-deeptutor run chat "Explain Fourier transform" --tool rag --kb textbook-deeptutor run deep_solve "Solve x^2 = 4" --tool reason-deeptutor chat --capability deep_research --kb papers-deeptutor partner create math-tutor --soul "Socratic math tutor"-deeptutor kb create calculus --doc textbook.pdf+deeptutor chat # interactive REPL+deeptutor chat --capability deep_solve --kb my-kb --tool rag+deeptutor run chat "Explain the Fourier transform" --tool rag --kb textbook+deeptutor run deep_research "Survey 2026 papers on RAG" \+ --config mode=report --config depth=standard```+Everything the Web app does is here too — knowledge bases (`kb`), sessions (`session`), partners (`partner`), skills (`skill`), notebooks, memory, and config. Full list below.++### Let an agent drive it++DeepTutor is built to be *operated by another agent*. Add `--format json` to any `run` and each turn streams **NDJSON — one event per line** (`content`, `tool_call`, `tool_result`, `done`, …), every line tagged with its `session_id`. Runs are headless-safe: an `ask_user` pause with no TTY auto-resolves with an empty reply instead of hanging.++```bash+# One shot, machine-readable+deeptutor run deep_solve "Find d/dx[sin(x^2)]" --tool reason --format json++# Chain turns in one stateful session — capture the id, reuse it+SID=$(deeptutor run deep_research "Survey 2026 papers on RAG" \+ --config mode=report --config depth=standard --format json \+ | jq -r 'select(.type=="done").session_id')+deeptutor run deep_question "Quiz me on that survey" --session "$SID" --format json+```++The repo ships a root [`SKILL.md`](SKILL.md) — a ~150-line handover doc that teaches any tool-using LLM the whole surface in one read. Hand it to Claude Code, Codex, or OpenCode (they pick up `SKILL.md` automatically), or wrap `deeptutor run` as a tool in a LangChain / AutoGen loop. Full recipes: [Agent Handoff](https://deeptutor.info/docs/cli/agent-handoff/).+<details><summary><b>Command reference</b></summary>@@ -582,7 +605,7 @@ deeptutor kb create calculus --doc textbook.pdf| `deeptutor init` | Create or update `data/user/settings` for the current workspace || `deeptutor start [--home PATH]` | Launch backend + frontend together || `deeptutor serve [--port PORT]` | Start only the FastAPI backend |-| `deeptutor run <capability> <message>` | Run a single capability turn (`chat`, `deep_solve`, `deep_question`, `deep_research`, `visualize`, `math_animator`, `auto`, `mastery_path`) |+| `deeptutor run <capability> <message>` | Run a single capability turn (`chat`, `deep_solve`, `deep_question`, `deep_research`, `visualize`, `math_animator`, `auto`, `mastery_path`); add `--format json` for NDJSON output || `deeptutor chat` | Interactive REPL with capability, tool, KB, notebook, and history controls || `deeptutor partner list/create/start/stop` | Manage IM-connected partners || `deeptutor kb list/info/create/add/search/set-default/delete` | Manage LlamaIndex knowledge bases |@@ -601,42 +624,40 @@ The CLI-only distribution is present in `packaging/deeptutor-cli`; in this check----## 🧩 Ecosystem — Hub Skills, One Command Away+## 🧩 Ecosystem — Open to the Skills Community-DeepTutor skills speak the same language as the wider Agent-Skills ecosystem: a directory holding a `SKILL.md` playbook (YAML frontmatter + markdown) plus optional reference files. That makes external skill registries a native source for the skill library — [ClawHub](https://clawhub.ai/) is wired in out of the box:+A DeepTutor skill follows the same open **Agent-Skills** format used across the wider agent ecosystem: a folder with a `SKILL.md` playbook (YAML frontmatter + markdown) and optional reference files. Because nothing about it is DeepTutor-specific, any community registry that speaks the same format becomes a first-class source for your skill library — no bespoke packaging, no lock-in.++So installing a community skill is a single command. [ClawHub](https://clawhub.ai/) ships wired in as the default hub, and other compatible registries plug in through `settings/skill_hubs.json`:```bash-deeptutor skill search "git release notes" # semantic search on the hub-deeptutor skill install clawhub:gh-release-notes # one command: verify → fetch → register-deeptutor skill install [email protected] # hub prefix defaults to clawhub; @ pins a version-deeptutor skill list # local skills with hub provenance ([email protected])+deeptutor skill search "git release notes" # search a connected hub+deeptutor skill install gh-release-notes # fetch → verify → register (clawhub by default)+deeptutor skill install some-hub:[email protected] # <hub>:<slug> picks the hub; @ pins a version+deeptutor skill list # local skills with their hub provenance```-Skills are addressed as `<hub>:<slug>[@version]`. Registries beyond ClawHub plug in through `settings/skill_hubs.json` — point `type: "clawhub"` at any compatible HTTP API, or use `type: "command"` to wrap whatever fetch CLI a registry ships (the command just drops the package into `{dest}`).--Every import runs the same gate, whatever the source:+> Connecting more registries: a `type: "clawhub"` entry in `settings/skill_hubs.json` points at any compatible HTTP API, while `type: "command"` wraps whatever fetch CLI a registry ships — both feed the same import gate below.-- the hub's **security verdict** is checked first — flagged packages are refused unless `--allow-unverified` is passed explicitly;-- archives are extracted defensively (zip-slip and zip-bomb guards) and support files pass a text/script **suffix whitelist**, so binaries never land in the workspace;-- frontmatter is adapted to DeepTutor's schema — flat `bins:`/`env:` keys fold into `requires.*` availability gates, and `always:` is **stripped**, so a downloaded package can never inject itself into every system prompt;-- provenance (hub, version, verdict, install time) is recorded in `.hub-lock.json` beside the skill for audits and updates.+Whatever the source, every import passes the **same safety gate** before anything touches your workspace:-In multi-user deployments, installing is admin-only (`POST /api/v1/multi-user/admin/skills/install`). The skill lands in the admin catalog — invisible to other users until a grant assigns it — so an admin can vet a hub skill in their own chats before rolling it out.+- the registry's **security verdict** is checked first — flagged packages are refused unless you pass `--allow-unverified`;+- archives are extracted defensively (zip-slip / zip-bomb guards) behind a text/script **suffix whitelist**, so binaries never land in the workspace;+- frontmatter is normalized to DeepTutor's schema and `always:` is **stripped**, so a downloaded skill can never force itself into every system prompt;+- provenance — hub, version, verdict, and install time — is written to `.hub-lock.json` for audits and updates.-ClawHub also distributes *plugins* (OpenClaw gateway runtime extensions); those are out of scope by design — DeepTutor's equivalent extension point is an MCP server, configured in Settings.+In multi-user deployments, installing is admin-only: a new skill lands in the admin catalog and stays invisible to other users until a grant assigns it, so an admin can vet it before rolling it out.---## 🌐 Community### 📮 Contact-DeepTutor is built and maintained by the [Data Intelligence Lab @ HKU](https://github.com/HKUDS), with ongoing contributions from the open-source community. Feel free to reach out at **[email protected]** for questions, ideas, or collaboration.--> ⚠️ DeepTutor's **only** official website is [**deeptutor.info**](https://deeptutor.info/). We do **not** run any hosted, paid, or otherwise online product of any kind — DeepTutor is open-source software you run on your own machine.+DeepTutor is an open-source project led by [Bingxi Zhao](https://github.com/pancacake) with the [HKUDS](https://github.com/HKUDS) Group, and it iterates in a fully open-source form, built together with the community. So far, we run no paid online products of any kind. Feel free to reach out at **[email protected]** for questions, ideas, or collaboration.### 🙏 Appreciation-Heartfelt thanks to the **[Data Intelligence Lab @ HKU](https://github.com/HKUDS)** — our professor and labmates — whose guidance and support make this work possible. And thank you to the **open-source community**: your stars, issues, pull requests, and discussions shape DeepTutor every single day.+Heartfelt thanks to [**Chao Huang**](https://sites.google.com/view/chaoh), director of the Data Intelligence Lab @ HKU, and to our HKUDS labmates for their warm support — especially [**Jiahao Zhang**](https://github.com/zzhtx258), [**Zirui Guo**](https://github.com/LarFii), and [**Xubin Ren**](https://github.com/Re-bin). We're also deeply grateful to the **open-source community**: your stars, issues, pull requests, and discussions shape DeepTutor every single day.DeepTutor stands on the shoulders of outstanding open-source projects that gave us both tools and inspiration:@@ -644,17 +665,17 @@ DeepTutor stands on the shoulders of outstanding open-source projects that gave|:---|:---|| [**LlamaIndex**](https://github.com/run-llama/llama_index) | RAG pipeline and document-indexing backbone || [**nanobot**](https://github.com/HKUDS/nanobot) | Ultra-lightweight agent engine that powered the original TutorBot *(HKUDS)* |-| [**ManimCat**](https://github.com/Wing900/ManimCat) | AI-driven math animation generation for Math Animator || [**LightRAG**](https://github.com/HKUDS/LightRAG) | Simple & fast RAG *(HKUDS)* || [**AutoAgent**](https://github.com/HKUDS/AutoAgent) | Zero-code agent framework *(HKUDS)* || [**AI-Researcher**](https://github.com/HKUDS/AI-Researcher) | Automated research pipeline *(HKUDS)* || [**OpenClaw**](https://github.com/openclaw/openclaw) | Open agent gateway and skill ecosystem behind ClawHub || [**Codex**](https://github.com/openai/codex) | Agent-native coding CLI that inspired our CLI workflow || [**Claude Code**](https://github.com/anthropics/claude-code) | Agentic coding CLI that inspired the DeepTutor agent loop |+| [**ManimCat**](https://github.com/Wing900/ManimCat) | AI-driven math animation generation for Math Animator |### 🗺️ Roadmap & Contribute-We want DeepTutor to keep iterating and improving — and ultimately to become a gift we give back to the open-source community. 🎁 Our [**roadmap**](https://github.com/HKUDS/DeepTutor/issues/498) is updated continuously; vote on items there or propose new ones. If you'd like to contribute, see the [**Contributing Guide**](CONTRIBUTING.md) for branching strategy, coding standards, and how to get started.+We want DeepTutor to keep iterating and improving — and ultimately to become a gift we give back to the open-source community. Our [**roadmap**](https://github.com/HKUDS/DeepTutor/issues/498) is updated continuously; vote on items there or propose new ones. If you'd like to contribute, see the [**Contributing Guide**](CONTRIBUTING.md) for branching strategy, coding standards, and how to get started.<div align="center">@@ -690,12 +711,6 @@ We hope DeepTutor becomes a gift for the community. 🎁<div align="center">-**[Data Intelligence Lab @ HKU](https://github.com/HKUDS)**--[⭐ Star us](https://github.com/HKUDS/DeepTutor/stargazers) · [🐛 Report a bug](https://github.com/HKUDS/DeepTutor/issues) · [💬 Discussions](https://github.com/HKUDS/DeepTutor/discussions)------Licensed under the [Apache License 2.0](LICENSE).<p>diff --git a/deeptutor/agents/chat/agentic_pipeline.py b/deeptutor/agents/chat/agentic_pipeline.pyindex d4231ea57..89ff44612 100644--- a/deeptutor/agents/chat/agentic_pipeline.py+++ b/deeptutor/agents/chat/agentic_pipeline.py@@ -76,7 +76,7 @@ FIRST on every turn, call `mastery_status`. It returns the next objective to worThen act on the objective:- No objectives yet? Design a path from the learner's materials (use `rag` / `read_source` when materials are attached) and call `mastery_build`. Tag each knowledge point: memory (facts), procedure (step-by-step skills), concept (ideas to understand), design (open-ended judgement).- `probe` (untouched): briefly check whether the learner already knows it before teaching — let them test out, don't lecture what they have already mastered.-- memory / procedure objectives: pose a concrete question with `mastery_quiz`, present it (use `ask_user` for a tight ask-and-answer loop), then score the learner's answer with `mastery_grade`. Keep working the same objective until `mastery_grade` reports `mastered: true`.+- memory / procedure objectives: register the question + its answer with `mastery_quiz`, then ALWAYS present it with the `ask_user` tool so the learner answers on an interactive card — never write the choices as plain numbered text. For multiple choice, give each `ask_user` option a short label (A / B / C …) and set the matching label as `mastery_quiz`'s `expected_answer`; for open questions use `ask_user` free text. When the answer comes back, score it with `mastery_grade`. Keep working the same objective until `mastery_grade` reports `mastered: true`.- concept / design objectives: ask the learner to explain the idea in their own words, judge it, and record the result with `mastery_assess` (`passed: true` only when the explanation truly shows understanding).- `review`: a spaced-repetition item is due — quiz it again to refresh it.- `complete`: congratulate the learner and summarise what they have mastered.@@ -92,7 +92,7 @@ _MASTERY_SYSTEM_ZH = """\然后针对该知识点行动:- 还没有任何知识点?根据学习者的材料设计一条路径(材料已挂载时用 `rag` / `read_source`),调用 `mastery_build`。给每个知识点标类型:memory(记忆/事实)、procedure(程序/步骤技能)、concept(概念/需理解)、design(设计/开放判断)。- `probe`(未触碰):先简短探查学习者是否已经会了再教——允许其"测试通过"直接跳过,不要重复讲他已掌握的内容。-- memory / procedure 类:用 `mastery_quiz` 出一道具体题目并呈现给学习者(紧凑问答用 `ask_user`),再用 `mastery_grade` 批改其作答。在 `mastery_grade` 返回 `mastered: true` 之前,持续打磨同一个知识点。+- memory / procedure 类:先用 `mastery_quiz` 登记题目与答案,然后**始终用 `ask_user` 工具**把题目呈现成可点选的卡片让学习者作答——绝不要把选项写成纯文字的 1./2./3.。选择题给每个 `ask_user` 选项一个短标签(A / B / C …),并把正确标签设为 `mastery_quiz` 的 `expected_answer`;简答题用 `ask_user` 的自由输入。收到作答后用 `mastery_grade` 批改。在 `mastery_grade` 返回 `mastered: true` 之前,持续打磨同一个知识点。- concept / design 类:让学习者用自己的话解释该概念,你来判断,并用 `mastery_assess` 记录结果(只有解释确实体现理解时才 `passed: true`)。- `review`:有到期的间隔复习项——再考一次以巩固。- `complete`:祝贺学习者并总结其已掌握的内容。diff --git a/deeptutor/tools/mastery_tool.py b/deeptutor/tools/mastery_tool.pyindex e54ca4952..6e019d68a 100644--- a/deeptutor/tools/mastery_tool.py+++ b/deeptutor/tools/mastery_tool.py@@ -138,9 +138,11 @@ class MasteryQuizTool(BaseTool):"Pose a question for a MEMORY or PROCEDURE objective and register ""its expected answer with the engine (so grading is deterministic ""and you never re-state the answer later). After calling this, "- "present the question to the learner — via ask_user for a tight "- "loop, or as your reply — then call mastery_grade with their "- "answer. For CONCEPT / DESIGN objectives use mastery_assess instead."+ "present the question with the ask_user tool so the learner answers "+ "on an interactive card (for choices, give ask_user options short "+ "labels like A/B/C and set the correct label as expected_answer); "+ "then call mastery_grade with their answer. For CONCEPT / DESIGN "+ "objectives use mastery_assess instead."),parameters=[ToolParameter(@@ -221,8 +223,10 @@ class MasteryQuizTool(BaseTool):"question": question,"options": options,"instruction": (- "Present this question to the learner now, then call "- "mastery_grade with their answer."+ "Present this question with the ask_user tool (use its options "+ "for multiple choice; the option labels must match the "+ "expected_answer you registered), then call mastery_grade with "+ "the learner's answer."),},meta_key="mastery_quiz",diff --git a/site/src/content/docs/docs/cli/agent-handoff.md b/site/src/content/docs/docs/cli/agent-handoff.mdindex 96ad816ec..cdb4695ad 100644--- a/site/src/content/docs/docs/cli/agent-handoff.md+++ b/site/src/content/docs/docs/cli/agent-handoff.md@@ -49,7 +49,7 @@ deeptutor kb create linalg --docs-dir ./textbooks/SESSION_ID=$(deeptutor run deep_question "Linear algebra fundamentals" \--kb linalg \--config num_questions=4 --config difficulty=easy \- --format json | jq -r 'select(.type=="done") | .metadata.session_id')+ --format json | jq -r 'select(.type=="done") | .session_id')deeptutor run deep_question "Linear algebra eigenvectors" \--kb linalg --session "$SESSION_ID" \@@ -157,7 +157,7 @@ SESSION_ID=$(deeptutor run deep_research "Survey 2026 papers on RAG" \--tool web_search --kb papers \--config mode=report --config depth=standard \--format json | \- jq -r 'select(.type=="done") | .metadata.session_id')+ jq -r 'select(.type=="done") | .session_id')# Step 2 — summarize (same session, different capability)deeptutor run chat "Summarize the top three findings as bullet points" \@@ -206,7 +206,7 @@ for line in proc.stdout:print(f"× Error: {event['content']}")breakelif event["type"] == "done":- session_id = event["metadata"]["session_id"]+ session_id = event["session_id"]breakanswer = "".join(final_content)@@ -221,7 +221,7 @@ deeptutor run chat "Hello" --format json | \# Get the session iddeeptutor run chat "Hello" --format json | \- jq -r 'select(.type=="done") | .metadata.session_id'+ jq -r 'select(.type=="done") | .session_id'# Stream stages as they finishdeeptutor run deep_research "..." \diff --git a/site/src/content/docs/docs/cli/commands.md b/site/src/content/docs/docs/cli/commands.mdindex 428c2c034..5929da1ab 100644--- a/site/src/content/docs/docs/cli/commands.md+++ b/site/src/content/docs/docs/cli/commands.md@@ -471,7 +471,7 @@ class TurnRequest:| `tool_call` | A tool is being invoked | `content` (tool name), `metadata.args` || `tool_result` | A tool returned | `content`, `metadata.tool` || `error` | Something went wrong | `content` |-| `done` | Turn complete | `metadata.session_id`, `metadata.turn_id` |+| `done` | Turn complete | `session_id`, `turn_id` (top-level), `metadata.status` |## See alsodiff --git a/site/src/content/docs/zh-cn/docs/cli/agent-handoff.md b/site/src/content/docs/zh-cn/docs/cli/agent-handoff.mdindex 1b5830711..fd3e0bac4 100644--- a/site/src/content/docs/zh-cn/docs/cli/agent-handoff.md+++ b/site/src/content/docs/zh-cn/docs/cli/agent-handoff.md@@ -49,7 +49,7 @@ deeptutor kb create linalg --docs-dir ./textbooks/SESSION_ID=$(deeptutor run deep_question "Linear algebra fundamentals" \--kb linalg \--config num_questions=4 --config difficulty=easy \- --format json | jq -r 'select(.type=="done") | .metadata.session_id')+ --format json | jq -r 'select(.type=="done") | .session_id')deeptutor run deep_question "Linear algebra eigenvectors" \--kb linalg --session "$SESSION_ID" \@@ -157,7 +157,7 @@ SESSION_ID=$(deeptutor run deep_research "Survey 2026 papers on RAG" \--tool web_search --kb papers \--config mode=report --config depth=standard \--format json | \- jq -r 'select(.type=="done") | .metadata.session_id')+ jq -r 'select(.type=="done") | .session_id')# Step 2 —— 总结(同一 session,不同 capability)deeptutor run chat "Summarize the top three findings as bullet points" \@@ -206,7 +206,7 @@ for line in proc.stdout:print(f"× Error: {event['content']}")breakelif event["type"] == "done":- session_id = event["metadata"]["session_id"]+ session_id = event["session_id"]breakanswer = "".join(final_content)@@ -221,7 +221,7 @@ deeptutor run chat "Hello" --format json | \# 拿到 session iddeeptutor run chat "Hello" --format json | \- jq -r 'select(.type=="done") | .metadata.session_id'+ jq -r 'select(.type=="done") | .session_id'# 流式打印每个 stage 完成的瞬间deeptutor run deep_research "..." \diff --git a/site/src/content/docs/zh-cn/docs/cli/commands.md b/site/src/content/docs/zh-cn/docs/cli/commands.mdindex 783ca973d..20fb3f957 100644--- a/site/src/content/docs/zh-cn/docs/cli/commands.md+++ b/site/src/content/docs/zh-cn/docs/cli/commands.md@@ -471,7 +471,7 @@ class TurnRequest:| `tool_call` | 正在调用某个 tool | `content`(tool 名)、`metadata.args` || `tool_result` | tool 返回结果 | `content`、`metadata.tool` || `error` | 出错 | `content` |-| `done` | turn 完成 | `metadata.session_id`、`metadata.turn_id` |+| `done` | turn 完成 | `session_id`、`turn_id`(顶层)、`metadata.status` |## 另见