{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-consult-response-schema.json",
  "title": "ConsultResponse",
  "description": "POST /projects/:id/consult response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-consult-api-openapi.yml#/components/schemas/ConsultResponse",
  "type": "object",
  "properties": {
    "consultJobId": {
      "type": "string",
      "description": "Opaque consult job id; poll it for the advisory result."
    },
    "projectId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "failed"
      ],
      "description": "queued = normal; failed = startup failed and the job is already terminal."
    },
    "streamUrl": {
      "description": "Relative SSE endpoint to stream this job's events.",
      "type": "string"
    }
  },
  "required": [
    "consultJobId",
    "projectId",
    "status"
  ],
  "additionalProperties": false
}