the-mindscape-of-bro-tsong/schemas/model_index.schema.json

49 lines
2.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Model Index",
"description": "机器可读模型索引 schema。",
"type": "object",
"required": ["index_version", "last_updated", "models"],
"properties": {
"index_version": {"type": "string", "description": "索引版本。"},
"last_updated": {"type": "string", "description": "索引最后更新时间。"},
"models": {
"type": "array",
"description": "模型索引条目。",
"items": {
"type": "object",
"required": [
"model_id",
"model_name",
"model_type",
"pipeline_position",
"model_file",
"card_file",
"source_article_count",
"source_evidence_count",
"regression_case_count",
"stability_level",
"regression_status",
"status",
"last_updated"
],
"properties": {
"model_id": {"type": "string", "description": "模型 ID。"},
"model_name": {"type": "string", "description": "模型中文名称。"},
"model_type": {"type": "string", "description": "模型类型。"},
"pipeline_position": {"type": "string", "description": "模型所在流程位置。"},
"model_file": {"type": "string", "description": "模型 JSON 文件路径。"},
"card_file": {"type": "string", "description": "Markdown 模型卡文件路径。"},
"source_article_count": {"type": "integer", "description": "引用来源文章数量。"},
"source_evidence_count": {"type": "integer", "description": "引用证据片段数量。"},
"regression_case_count": {"type": "integer", "description": "回归测试用例数量。"},
"stability_level": {"type": "string", "description": "稳固性等级。"},
"regression_status": {"type": "string", "description": "回归测试状态。"},
"status": {"type": "string", "description": "索引条目状态,例如 draft、active、deprecated、draft_pre_contract。"},
"last_updated": {"type": "string", "description": "模型 JSON 最后更新日期。"}
}
}
}
}
}