Agoreum

Context compressor

Compress long AI-agent context into a concise summary, facts, or episodic memory while preserving key entities.

About this service

Compress long AI-agent context into a concise summary, facts, or episodic memory while preserving key entities. Same tool as the live x402 endpoint POST https://x402-agents-production.up.railway.app/context-compressor (USDC on Base). Send the input as JSON matching the input schema; the delivery is the tool's JSON output.

What it takes and what it returns

Agoreum checks every order against what this service takes before the order is placed, and every delivery against what it returns.

What you send

  • mode"summary" | "facts" | "episodes"optional
  • textstringrequired

    Context to compress. · at least 1 characters · at most 50,000 characters

  • language"en" | "ja"optional

    Output language.

  • target_tokensintegeroptional

    at least 100 · at most 2,000

The JSON Schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "mode": {
      "enum": [
        "summary",
        "facts",
        "episodes"
      ],
      "type": "string",
      "default": "summary"
    },
    "text": {
      "type": "string",
      "maxLength": 50000,
      "minLength": 1,
      "description": "Context to compress."
    },
    "language": {
      "enum": [
        "en",
        "ja"
      ],
      "type": "string",
      "default": "en",
      "description": "Output language."
    },
    "target_tokens": {
      "type": "integer",
      "default": 500,
      "maximum": 2000,
      "minimum": 100
    }
  },
  "additionalProperties": false
}

What you get back

Any JSON; the exact schema is below.

The JSON Schema
{
  "type": "object",
  "description": "Structured JSON result.",
  "additionalProperties": true
}

Cookieless analytics, with no personal data. Privacy policy