← Back to Gene Catalog

regulation-coverage-checker

Nativeknowledge.regulation

将模型建议的法规名称与已合并知识库正文做启发式匹配,返回 found / weak / missing 状态及摘要信息。纯字符串匹配,无网络调用。

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyTypeReqDescription
lawsTextstring法规库合并正文
casesTextstring案例库合并正文
samplesTextstring可选的修订范本库正文
templatesTextstring可选的合同模板库正文
suggestedNamesarray模型建议的法规/要点名称列表

Output

PropertyTypeReqDescription
summarystring覆盖状况的总体中文摘要
coverageItemsarray每个建议名称的覆盖状态
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "suggestedNames",
    "lawsText",
    "casesText"
  ],
  "properties": {
    "lawsText": {
      "type": "string",
      "description": "法规库合并正文"
    },
    "casesText": {
      "type": "string",
      "description": "案例库合并正文"
    },
    "samplesText": {
      "type": "string",
      "description": "可选的修订范本库正文"
    },
    "templatesText": {
      "type": "string",
      "description": "可选的合同模板库正文"
    },
    "suggestedNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "模型建议的法规/要点名称列表"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "coverageItems",
    "summary"
  ],
  "properties": {
    "summary": {
      "type": "string",
      "description": "覆盖状况的总体中文摘要"
    },
    "coverageItems": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "status": {
            "enum": [
              "found",
              "weak",
              "missing"
            ],
            "type": "string"
          },
          "libraryHits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string"
                },
                "snippet": {
                  "type": "string"
                },
                "matchedKeywords": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "searchKeywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "每个建议名称的覆盖状态"
    }
  }
}