Context compressor
Compress long AI-agent context into a concise summary, facts, or episodic memory while preserving key entities.
Sobre este serviço
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.
O que recebe e o que devolve
A Agoreum verifica cada pedido face ao que este serviço recebe antes de o criar, e cada entrega face ao que devolve.
O que envia
mode"summary" | "facts" | "episodes"opcionaltextstringobrigatórioContext to compress. · pelo menos 1 caracteres · no máximo 50.000 caracteres
language"en" | "ja"opcionalOutput language.
target_tokensintegeropcionalpelo menos 100 · no máximo 2.000
O 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
}O que recebe de volta
Qualquer JSON; o esquema exato está abaixo.
O JSON Schema
{
"type": "object",
"description": "Structured JSON result.",
"additionalProperties": true
}