{
  "version": 1,
  "structures": [
    {
      "name": "moderation_triage_response",
      "description": "对提交内容的初步审核结论",
      "example": {
        "verdict": "flag",
        "risk_category": "spam",
        "explanation": "重复发送推广链接，无原创内容。"
      },
      "schema": {
        "type": "object",
        "properties": {
          "verdict": {
            "type": "string",
            "enum": [
              "approve",
              "flag",
              "block"
            ]
          },
          "risk_category": {
            "type": "string"
          },
          "explanation": {
            "type": "string"
          }
        },
        "required": [
          "verdict",
          "risk_category",
          "explanation"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "moderation_decision_response",
      "description": "最终决定与已执行的动作",
      "example": {
        "final_decision": "flag",
        "action_taken": "已隐藏并等待人工复核",
        "note": "已转交审核员确认。"
      },
      "schema": {
        "type": "object",
        "properties": {
          "final_decision": {
            "type": "string",
            "enum": [
              "approve",
              "flag",
              "block"
            ]
          },
          "action_taken": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "final_decision",
          "action_taken",
          "note"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "content_moderation_workflow",
      "description": "审核内容并启动决定流水线",
      "provider": "deepseek",
      "model": "deepseek-v4-flash",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "按照典型社区政策审核提交的内容：安全且相关的内容放行，需要人工复核的标记，明显违规的直接拦截。简要说明每个结论的理由。",
      "structure": "moderation_triage_response",
      "customer_fields": [
        "content_text",
        "content_type",
        "submitter_id"
      ],
      "test_mode": false,
      "cache_window_seconds": 300,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "content_submitted"
          },
          {
            "name": "apply_decision",
            "target_workflow": "moderation_decision_workflow"
          },
          {
            "name": "decision_recorded"
          }
        ]
      }
    },
    {
      "name": "moderation_decision_workflow",
      "description": "记录最终的审核动作",
      "provider": "anthropic",
      "model": "claude-haiku-4-5-20251001",
      "backups": [
        {
          "provider": "deepseek",
          "model": "deepseek-v4-flash"
        }
      ],
      "request_type": "chat",
      "system_instructions": "确认最终审核决定，并说明已执行的动作，例如放行、隐藏待复核或拦截内容。给审核员的备注保持简洁。",
      "structure": "moderation_decision_response",
      "customer_fields": [
        "content_text",
        "content_type",
        "submitter_id"
      ],
      "test_mode": false
    }
  ]
}
