{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/serve-response.schema.json",
  "title": "Serve response",
  "type": "object",
  "required": [
    "outcome"
  ],
  "properties": {
    "outcome": {
      "enum": [
        "done",
        "pending-approval",
        "needs-clarification",
        "refused",
        "not-understood"
      ]
    },
    "intent": {
      "$ref": "intent.schema.json"
    },
    "question": {
      "description": "What the Core needs to know, for needs-clarification.",
      "type": "string"
    },
    "actionId": {
      "$ref": "common.schema.json#/$defs/uuid"
    },
    "answer": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "receiptId": {
      "$ref": "common.schema.json#/$defs/uuid"
    }
  }
}
