{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/supercompress-dev/json-schema/supercompress-dev-post-api-v1-compress-response-schema.json",
  "title": "PostApiV1CompressResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/supercompress-dev-openapi-generated.yml#/components/schemas/PostApiV1CompressResponse",
  "type": "object",
  "properties": {
    "compressed_text": {
      "type": "string",
      "description": "The compressed context. Send this to your LLM."
    },
    "original_tokens": {
      "type": "integer",
      "description": "Input token count (rough estimate)."
    },
    "kept_tokens": {
      "type": "integer",
      "description": "Tokens after compression."
    },
    "tokens_saved": {
      "type": "integer",
      "description": "original − kept."
    },
    "tokens_saved_pct": {
      "type": "number",
      "description": "Percent of prompt tokens removed."
    },
    "important_kept_pct": {
      "type": "number",
      "description": "Estimated fraction of important context preserved. 0.0–1.0."
    },
    "compression_risk": {
      "type": "string",
      "description": "\"low\", \"medium\", or \"high\", verifier confidence."
    },
    "kept_blocks": {
      "type": "array",
      "description": "Evidence blocks kept, with reasons."
    },
    "dropped_blocks": {
      "type": "array",
      "description": "Largest removed blocks, with reasons."
    },
    "policy_name": {
      "type": "string",
      "description": "\"SuperCompress-compiler\" or \"SuperCompress-fixed\"."
    }
  }
}