generate_calc_items
Generate calculation problems and answers as structured data for custom layouts. Returns {q,a} pairs without PDF rendering, ideal for daily practice exercises.
Instructions
只出计算题数据、不渲染 PDF —— 拿 {q,a} 塞进自有版面(每日一练等)。
与 generate_calc_paper 同一套生成器(确定性、跨组去重、难度档、seed 复现), 区别 = 不出 PDF、直接返回题面与答案,排版归 agent。 🔴 题目由程序生成,答案由生成器同步算出——不需要再人工/LLM 验算。 参数: groups: [{type, count, label?, level?}],type 从 list_calc_types 查(严禁编造); level=basic/advanced 出基础版/提高版(同考点不同难度,两版一次做完)。 seed: 随机种子(任意字符串,同串复现同一批题;空=随机)。 fill_rows: 🔴 缺省 False = 要几题给几题(自排版场景不该被静默改数量); True 才向上凑整到栏数倍数。 返回: {ok, total, seed, groups:[{label, cols, mode, items:[{q,a}]}]}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| groups | Yes | ||
| fill_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||