{
  "$defs": {
    "JsonValue": {},
    "OnFail": {
      "enum": [
        "retry",
        "fail",
        "flag"
      ],
      "title": "OnFail",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "properties": {
    "agent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Agent"
    },
    "inference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Inference"
    },
    "on_fail": {
      "$ref": "#/$defs/OnFail"
    },
    "run": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Run"
    },
    "threshold": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Threshold"
    },
    "use": {
      "anyOf": [
        {
          "pattern": "^[a-z][a-z0-9_]{0,62}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Use"
    },
    "with": {
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "With"
    }
  },
  "required": [
    "on_fail"
  ],
  "title": "CheckSpec",
  "type": "object"
}
