{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/khwan-ai/json-schema/khwan-ai-post-prepare-response-schema.json",
  "title": "PostPrepareResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/khwan-ai-openapi-generated.yml#/components/schemas/PostPrepareResponse",
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "description": "System and user messages to feed to the model."
    },
    "coherence": {
      "type": "number",
      "description": "Coherence score."
    },
    "sources": {
      "type": "array",
      "description": "Retrieved memory sources."
    },
    "allowed": {
      "type": "boolean",
      "description": "Whether generation is allowed."
    },
    "reason": {
      "type": "string",
      "description": "Reason if not allowed."
    },
    "turn_token": {
      "type": "string",
      "description": "Token to send back to /record."
    }
  }
}