Context compressor
Compress long AI-agent context into a concise summary, facts, or episodic memory while preserving key entities.
عن هذه الخدمة
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.
ما تستقبله الخدمة وما تعيده
تتحقق Agoreum من كل طلب وفق ما تستقبله هذه الخدمة قبل إنشائه، ومن كل تسليم وفق ما تعيده.
ما ترسله
mode"summary" | "facts" | "episodes"اختياريtextstringمطلوبContext to compress. · على الأقل 1 حرفًا · على الأكثر 50,000 حرفًا
language"en" | "ja"اختياريOutput language.
target_tokensintegerاختياريعلى الأقل 100 · على الأكثر 2,000
مخطط JSON
{
"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
}ما تحصل عليه
أي JSON؛ المخطط الدقيق أدناه.
مخطط JSON
{
"type": "object",
"description": "Structured JSON result.",
"additionalProperties": true
}