make_variants
Generate variant math problems from a source problem using image, text, or question ID. Produces a mother card and variant set for practice.
Instructions
举一反三·母题轮:读图解题打标 → 出母题卡(LLM 轮 ~60s)。图驱动 + D8 渲图旁路。
入参三选一(image_url > stem_text > question_id 优先级):
image_url : 公网可达图片 URL(.png/.jpg/.jpeg/.webp)——直接喂入口。
stem_text : 纯文本题干(可含 $LaTeX$/markdown)→ MCP 确定性渲图→传 OSS→喂引擎(rendered_stem:true)。
question_id: 题库题 id(字符串)→ 先查 biz_question_image 的 oss_url; 无图则走渲图旁路(取该题 stemText 渲图→传 OSS),返回 rendered_stem:true。
hint : 追加指令(如「侧重折叠」),默认「帮我把这道题举一反三」。
count : 变式数(进 message 文案,实际生成在 generate_variants)。
thread_id : 续跑同一母题会话用;缺省自动生成(uuid4)。返回值里带回,后续工具必传它。 返回: {ok, thread_id, status:"ready"|"need_confirm", mother_card, kg_candidates?, reply, rendered_stem?}。
rendered_stem=true ⇒ 母题图由渲图旁路生成(题干确定性渲染,opus 读图 OCR)。
status=need_confirm(低置信/骨架空分支)→ 读 kg_candidates 挑章 → confirm_variant_chapter。
status=ready → 直接 generate_variants。
mother_card=None(入口回催图/催登录)→ ok:false,hint=引擎回文(reply)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| count | No | ||
| image_url | No | ||
| stem_text | No | ||
| thread_id | No | ||
| question_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||