generate_variants
Generate variant problems from a thread, with automatic retry on empty results to ensure complete problem sets.
Instructions
触发变式生成(start_variants 续跑,LLM 轮 ~70s)→ 取题组。
参数: thread_id : make_variants/confirm 后的会话 id。 auto_verify: True=生成后每题自动 sympy 验算;False(默认,产品口径)=每题 tier=pending, 按需 verify_variant。透传 agent_config.auto_verify。 返回: {ok, thread_id, count, variants:[{item_id, seq, stem, answer, solution, qtype, difficulty, tier, verify_status, figure_spec, dna, question_id}]}。 🔴 生成偶发首轮空题组(opus 对压轴母题首轮不收尾)——本工具按 AC4「重试≤2」自动再触发一次 start_variants(实测第二次即出题);两次仍空 → ok:false + 引擎回文,交驱动 agent 处置。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | ||
| auto_verify | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||