inputSchema
{
"type": "object",
"required": [
"knowledge",
"contractText",
"apiKeys"
],
"properties": {
"apiKeys": {
"type": "object",
"required": [
"llm"
],
"properties": {
"llm": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"model": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"baseUrl": {
"type": "string"
},
"provider": {
"enum": [
"deepseek",
"openai",
"anthropic"
],
"type": "string"
}
}
}
}
},
"chunkSize": {
"type": "number"
},
"knowledge": {
"type": "object",
"properties": {
"laws": {
"type": "string"
},
"cases": {
"type": "string"
},
"revisionSamples": {
"type": "string"
},
"contractTemplates": {
"type": "string"
}
},
"description": "四类知识库至少一类非空(由基因逻辑校验)"
},
"partyRole": {
"type": "string"
},
"focusAreas": {
"type": "array",
"items": {
"type": "string"
}
},
"reviewScope": {
"enum": [
"full",
"delta"
],
"type": "string",
"description": "默认 full;delta 时优先针对 changeSummary 审查"
},
"chunkOverlap": {
"type": "number"
},
"contractText": {
"type": "string",
"description": "待审全文(合同、单方文书或非诉专业文书)"
},
"documentKind": {
"enum": [
"contract",
"unilateral_compliance",
"non_litigation_professional"
],
"type": "string",
"description": "contract=合同/协议;unilateral_compliance=单方文书;non_litigation_professional=非诉专业文书/制度"
},
"changeSummary": {
"type": "string",
"description": "与 reviewScope=delta 配合:本轮变更说明"
},
"chunkedReview": {
"type": "boolean"
},
"contractTitle": {
"type": "string"
},
"documentSubtype": {
"type": "string",
"description": "文书细分:unilateral 时如遗嘱、授权委托书;non_litigation 时如法律意见书、尽调报告、制度规范(反洗钱)等"
},
"sessionFeedback": {
"type": "string"
},
"maxCharsSinglePass": {
"type": "number"
},
"priorLearningContext": {
"type": "string"
},
"chunkConsolidationPass": {
"type": "boolean",
"description": "默认 true。分段审查且段数>1 时是否再调用一次模型做汇总去重"
},
"knowledgeFocusExcerpts": {
"type": "string",
"description": "可选。宿主根据 confirmed 名称从法规/案例库检索匹配的摘录文本"
},
"confirmedKnowledgeFocus": {
"type": "array",
"items": {
"type": "string"
},
"description": "可选。用户在长知识库预警流程中确认的法规/要点名称"
}
}
}
outputSchema
{
"type": "object",
"required": [
"revisionSuggestions",
"riskSummary",
"checklistForOwner",
"learningContextForNextCall",
"disclaimer"
],
"properties": {
"disclaimer": {
"type": "string"
},
"riskSummary": {
"type": "string"
},
"chunkReviewMeta": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"chunkSize": {
"type": "number"
},
"chunkCount": {
"type": "number"
},
"consolidationError": {
"type": "string"
},
"maxCharsSinglePass": {
"type": "number"
},
"consolidationApplied": {
"type": "boolean",
"description": "是否已执行分段后的汇总去重"
},
"consolidationSkippedReason": {
"type": "string"
}
}
},
"checklistForOwner": {
"type": "array",
"items": {
"type": "string"
}
},
"revisionSuggestions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string"
},
"issue": {
"type": "string"
},
"clauseRef": {
"type": "string"
},
"riskLevel": {
"enum": [
"low",
"medium",
"high"
],
"type": "string"
},
"suggestion": {
"type": "string"
},
"originalExcerpt": {
"type": "string"
},
"suggestedRedline": {
"type": "string"
}
}
}
},
"learningContextForNextCall": {
"type": "string"
}
}
}