{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aumos.app/spec/amp/1/manager-error.schema.json",
  "title": "manager-error",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "const": "AMP/1"
    },
    "invocationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "INVALID_INVOCATION",
            "CONFIG_ERROR",
            "SKILL_UNAVAILABLE",
            "RATE_LIMITED",
            "TIMEOUT",
            "CANCELLED",
            "INTERNAL"
          ]
        },
        "message": {
          "type": "string",
          "minLength": 1
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": ["code", "message"],
      "additionalProperties": false
    }
  },
  "required": ["protocol", "invocationId", "error"],
  "additionalProperties": false
}
