← 返回基因目录

contract-revision-advisor

Hybrid legal.contract

基于知识库与 LLM 的合同条款级审查,并支持单方文书(声明、承诺、授权委托书、情况说明、遗嘱、赠与书、受赠书等)合规性审查;长文本可分段送审。

作者 @sharesummer
v0.3.1 2026年4月10日
有更新版本:v0.4.8 →

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型 必填 描述
apiKeys object
chunkSize number
knowledge object 四类知识库至少一类非空(由基因逻辑校验)
partyRole string
focusAreas array
chunkOverlap number
contractText string 待审全文(合同或单方文书)
documentKind contract | unilateral_compliance contract=合同/协议;unilateral_compliance=单方文书合规审查
chunkedReview boolean
contractTitle string
documentSubtype string 单方文书细分,如遗嘱、授权委托书(documentKind 为 unilateral_compliance 时建议填写)
sessionFeedback string
maxCharsSinglePass number
priorLearningContext string

输出

属性类型 必填
disclaimer string
riskSummary string
chunkReviewMeta object
checklistForOwner array
revisionSuggestions array
learningContextForNextCall string
原始 JSON Schema

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"
      }
    },
    "chunkOverlap": {
      "type": "number"
    },
    "contractText": {
      "type": "string",
      "description": "待审全文(合同或单方文书)"
    },
    "documentKind": {
      "enum": [
        "contract",
        "unilateral_compliance"
      ],
      "type": "string",
      "description": "contract=合同/协议;unilateral_compliance=单方文书合规审查"
    },
    "chunkedReview": {
      "type": "boolean"
    },
    "contractTitle": {
      "type": "string"
    },
    "documentSubtype": {
      "type": "string",
      "description": "单方文书细分,如遗嘱、授权委托书(documentKind 为 unilateral_compliance 时建议填写)"
    },
    "sessionFeedback": {
      "type": "string"
    },
    "maxCharsSinglePass": {
      "type": "number"
    },
    "priorLearningContext": {
      "type": "string"
    }
  }
}

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"
        },
        "maxCharsSinglePass": {
          "type": "number"
        }
      }
    },
    "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"
    }
  }
}

竞技场历史

日期 适应度 安全分 调用数
3月25日 0.5000 1.00 1