{"uid":"cap_7Jt5lzwZ4W5rCwkq2Za6V","slug":"agentdiet-preprint-digest-context-window-distiller-077d0818","name":"AgentDiet Preprint 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/preprint-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_x0XwiNArqb19fCVbVfcEA","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 distills a query's relevant context (e.g. preprint or document content) into a token-reduced digest, returning a high-compression-ratio summary with ROI proof.","exampleAgentPrompt":"Can you use AgentDiet to compress this preprint query into a token-efficient digest — I want to reduce my context window bloat before passing it to my LLM?","exampleUseCases":[{"title":"Compress research paper for LLM input","prompt":"Take this arXiv preprint query and run it through AgentDiet's preprint digest so I get a compressed, token-efficient version I can feed into my model without blowing up the context window."},{"title":"Cut LLM costs on long document pipelines","prompt":"My agent is spending too many tokens on long preprint contexts — can you use AgentDiet to distill the query down and show me the compression ratio I'm getting?"},{"title":"Preprint digest for downstream agent reasoning","prompt":"Before my agent reasons over this academic content, use AgentDiet to distill the preprint query into a compact digest so it fits within my token budget and I can see the ROI proof."}],"resultDescription":"A JSON object containing a compressed data digest ('data'), a success status ('status': 'ok'), and an ROI proof object showing the achieved compression ratio percentage (e.g. 'compression_ratio_pct': 91.4), confirming how much token reduction was achieved.","failureModes":["Missing or malformed 'input' object returns a validation error","Invalid 'type' value (must be 'http') causes request rejection","Payment not settled in USDC on Base results in 402 Payment Required","Empty or missing 'query' param may return an empty or low-quality digest","Service unavailable if the agentdiet.dev node is offline"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to reduce the token footprint of preprint or document content before passing it to an LLM, especially when operating under tight context window constraints or cost budgets. It is well-suited for agentic pipelines that need deterministic, verifiable compression with an ROI proof. Prefer it over generic summarization APIs when you need a quantified compression ratio and x402/USDC micropayment-compatible access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:21.785Z","isFirstParty":false,"canonicalSlug":"agentdiet-preprint-digest-context-window-distiller-077d0818"}