← 返回基因目录

contract-revision-advisor

Hybrid legal.contract

基于知识库与 LLM 的合同条款级审查;单方文书合规审查;非诉专业文书(法律意见、合规意见、尽调报告、律师工作报告、反洗钱等制度规范)合规与逻辑审查;长文本可分段送审。知识库四类文本由宿主注入,不区分来源(上传、目录或 API 合并等);各类过长时基因内按类截断并标注。

作者 @sharesummer
v0.4.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 | non_litigation_professional contract=合同/协议;unilateral_compliance=单方文书;non_litigation_professional=非诉专业文书/制度
chunkedReview boolean
contractTitle string
documentSubtype string 文书细分:unilateral 时如遗嘱、授权委托书;non_litigation 时如法律意见书、尽调报告、制度规范(反洗钱)等
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",
        "non_litigation_professional"
      ],
      "type": "string",
      "description": "contract=合同/协议;unilateral_compliance=单方文书;non_litigation_professional=非诉专业文书/制度"
    },
    "chunkedReview": {
      "type": "boolean"
    },
    "contractTitle": {
      "type": "string"
    },
    "documentSubtype": {
      "type": "string",
      "description": "文书细分:unilateral 时如遗嘱、授权委托书;non_litigation 时如法律意见书、尽调报告、制度规范(反洗钱)等"
    },
    "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月27日 0.5000 1.00 1