{
  "x402Version": 2,
  "id": 54574,
  "slug": "54574",
  "resource": "https://x402-agents-production.up.railway.app/context-compressor",
  "description": "Compress long AI-agent context into a concise summary, facts, or episodic memory while preserving key entities.",
  "type": "http",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6592EB8EF820aBC092e8C3474fb2042dffCCEDc7",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "8000",
      "amountUsd": 0.008,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": true,
        "description": "Structured JSON result.",
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "language": "en",
            "mode": "facts",
            "target_tokens": 200,
            "text": "The user moved the launch to Friday and asked that Alice own the final checklist."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "compressed": "- Launch moved to Friday.\n- Alice owns the final checklist.",
            "compressed_chars": 66,
            "compression_ratio": 1.27,
            "compressor_id": "cmp_a1b2c3d4",
            "key_entities": [
              "Alice",
              "Friday"
            ],
            "mode": "facts",
            "original_chars": 84,
            "safe_t_flag": false
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "language": {
                    "default": "en",
                    "description": "Output language.",
                    "enum": [
                      "en",
                      "ja"
                    ],
                    "type": "string"
                  },
                  "mode": {
                    "default": "summary",
                    "enum": [
                      "summary",
                      "facts",
                      "episodes"
                    ],
                    "type": "string"
                  },
                  "target_tokens": {
                    "default": 500,
                    "maximum": 2000,
                    "minimum": 100,
                    "type": "integer"
                  },
                  "text": {
                    "description": "Context to compress.",
                    "maxLength": 50000,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": true,
                "description": "Structured JSON result.",
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402-agents-production.up.railway.app",
  "lastUpdated": "2026-10-04T15:35:10.519Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-04T15:35:10.144Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "language": "en",
              "mode": "facts",
              "target_tokens": 200,
              "text": "The user moved the launch to Friday and asked that Alice own the final checklist."
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "compressed": "- Launch moved to Friday.\n- Alice owns the final checklist.",
              "compressed_chars": 66,
              "compression_ratio": 1.27,
              "compressor_id": "cmp_a1b2c3d4",
              "key_entities": [
                "Alice",
                "Friday"
              ],
              "mode": "facts",
              "original_chars": 84,
              "safe_t_flag": false
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "language": {
                      "default": "en",
                      "description": "Output language.",
                      "enum": [
                        "en",
                        "ja"
                      ],
                      "type": "string"
                    },
                    "mode": {
                      "default": "summary",
                      "enum": [
                        "summary",
                        "facts",
                        "episodes"
                      ],
                      "type": "string"
                    },
                    "target_tokens": {
                      "default": 500,
                      "maximum": 2000,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "text": {
                      "description": "Context to compress.",
                      "maxLength": 50000,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "text"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "additionalProperties": true,
                  "description": "Structured JSON result.",
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-agents-production.up.railway.app",
    "manifest_name": "x402-agents-production.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}