统计复算包(一次性下载)/ Reproducibility bundle
sanyu_get_repro_bundleBuild a self-contained reproducibility zip (clean data + analysis.py + analysis.R + expected_output.json + manifest.sha256 + README) and return a ONE-TIME download URL. Third parties can re-run the script and compare against the expected output. 生成统计复算包并给一次性下载链接;第三方执行包内脚本即可自行复算并与期望输出比对。 | USE WHEN: 用户要『能自己复算』『给审稿人数据+代码』『复现这个结果』 | ALIASES: 复算包, 可重复, reproducibility, repro bundle, 数据+代码, 归档 | RETURNS: 一次性下载 URL + 方法名 + 行数 + 数据 sha256 | 注意: 需要 API 密钥(结果要归属账号);URL 仅可用一次、默认 30 分钟过期。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>",
"headers": "<headers>",
"data": "<data>"
},
"name": "sanyu_get_repro_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 数据行(二维数组),必须是**真实参与分析**的行,不要只传预览的前几行 —— 行不全的包与平台结果必然对不上 | |
| title | No | 可选:包标题 | |
| method | Yes | 复算方法 id(先调 sanyu_validation_report 或 GET /api/repro-bundle/methods 查可用清单,如 t_test / logistic / cox / roc_auc / anova_oneway) | |
| params | No | 方法参数(如 {"alpha":0.05}),缺省用方法默认值 | |
| headers | Yes | 列名数组(首行表头),长度须与每行一致 | |
| platform_result | No | 可选:平台本次结果,传入后包里会做逐键一致性判定 |