PKULaw Law Diff Article Versions
31.5 credits/call
ae_law_diff_article_versions
比较某部法同一条在两个版本里的原文差异(按今天的条号追溯,中间改过条号也能对上),按 format 返回增删短语、逐行增删或左右对照。
31.5 credits/call
Pricing
31.5 credits/call
| Condition | Charge |
|---|---|
| Each call | 31.5 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
format | enum (phrase_summary | unified | side_by_side) | No | 差异格式。phrase_summary(默认)给增删短语与变化级别,适合复述;unified 是逐行增删;side_by_side 是左右对照,适合做修法对比表。 | phrase_summary |
law_title | string | Yes | 法规名称。全称或简称均可,例如「公司法」「民法典」「上海市生活垃圾管理条例」。也可带「新公司法」「2023公司法」「公司法 2023修订」这类版本提示。司法解释、会议纪要等名称较长时,能写多完整写多完整。上限 200 字。 | — |
to_version | string | Yes | 终点版本(新版)。写法同 from_version,也可写 current(本法仍现行有效的那一版;已被其他法吸收时没有现行版)。 | — |
from_version | string | Yes | 起点版本(旧版)。可传版本标签(如「2018修正」,以 list_law_versions 返回的为准)或日期 YYYY-MM-DD(按施行日期定位当时生效的版本)。 | — |
article_number | string | Yes | 今天的条号,例如「3」「第三条」;第十七条之一写 17.1,也可写「第十七条之一」。 | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_law_diff_article_versions' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"law_title": "xxx",
"to_version": "xxx",
"from_version": "xxx",
"article_number": "xxx"
}
}'No response example available yet.

