{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TurnFailure",
  "type": "object",
  "required": ["code", "message", "retryable"],
  "properties": {
    "code": {
      "enum": [
        "stale_node",
        "invalid_input",
        "invalid_model_output",
        "provider_unavailable",
        "cancelled",
        "timed_out",
        "internal"
      ]
    },
    "message": {
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
