compare_versions
Compare two versions of a CDISC standard to identify differences by section, returning a summary first and allowing drill-down into specific sections with row limits.
Instructions
比较同一标准两个版本的差异。
默认返回摘要视图(各差异分区名称与行数 + Info 分区内容),因为完整 diff 载荷可达数十 MB,不适合直接进上下文。 要看某分区详情:传 section='<分区名>'(名称来自摘要里的 sections 索引),并用 max_rows 控制返回行数(默认 200,超出会标注 truncated)。
参数说明:
standard: 标准名称,如 sdtmig, adamig
old_version / new_version: 旧/新版本号,支持 '3-3'/'3.3'/'latest';传反了会自动交换并在响应 note 中说明
示例: standard='sdtmig', old_version='3-3', new_version='3-4' 再下钻: section='Domains', max_rows=50
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true 时返回未汇总的完整 diff 载荷——警告:可达数十 MB,极耗 token,仅在确有必要时使用;默认 false(摘要视图) | |
| section | No | 只返回指定差异分区的明细行;不传则返回全部分区的摘要索引 | |
| max_rows | No | section 明细模式下最多返回的行数,默认 200 | |
| standard | Yes | 标准名称: sdtm, sdtmig, sendig, adam, adamig, cdash, cdashig | |
| new_version | Yes | 新版本号,支持 '3-4'/'3.4'/'latest' | |
| old_version | Yes | 旧版本号,支持 '3-3'/'3.3'/'latest' |