{"uid":"cap_a3tWXNN9DxkWdepZwKSb6","slug":"agentdiet-cs-lg-digest-context-window-distiller-ea399a98","name":"AgentDiet cs-lg-digest Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/cs-lg-digest?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"query":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0Fh8R2WXW2lmrseeo-0xE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and digests large context windows or RAG content by up to 91%+ to reduce token usage for AI agents","exampleAgentPrompt":"Can you run this retrieved context through AgentDiet's cs-lg-digest compressor to shrink it down — I want to see the compression ratio and get the distilled version back so I can fit it into my LLM's context window without blowing the token budget?","exampleUseCases":[{"title":"RAG pipeline token cost reduction","prompt":"Take the documents my retrieval pipeline just fetched and run them through the AgentDiet context distiller — I need the compressed digest version so I'm not burning tokens on filler when I pass it to the model."},{"title":"Long context trimming before LLM call","prompt":"I've got a huge context window I need to pass to GPT — can you send it through AgentDiet's cs-lg-digest endpoint first to cut it down and tell me what the compression ratio was?"},{"title":"Agent-to-agent context handoff optimization","prompt":"Before my orchestrator agent hands off context to the sub-agent, compress it using AgentDiet so the sub-agent gets a tight, distilled summary rather than the full bloated payload — show me the roi proof compression ratio."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed digest output, a 'status' field confirming success ('ok'), and an 'roi_proof' object that includes a 'compression_ratio_pct' metric (e.g. 91.4%) showing how much the input was reduced.","failureModes":["Missing required 'input' field returns validation error","Invalid 'type' value (must be 'http') causes schema rejection","Payment not settled in USDC on Base causes 402 Payment Required response","Empty or malformed query param may return empty or low-quality digest","Network timeout if input payload is too large"],"whenToPreferThis":"Choose this endpoint when you need deterministic, quantifiable token reduction for AI agent context windows or RAG-retrieved content before passing to an LLM. Ideal for cost-sensitive pipelines where you need a provable compression ratio (roi_proof) rather than a qualitative summary. Prefer over generic summarization APIs when operating in A2A/MCP/x402 agent infrastructure contexts and paying per-call in USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:43.103Z","isFirstParty":false,"canonicalSlug":"agentdiet-cs-lg-digest-context-window-distiller-ea399a98"}