{"uid":"cap__NnyA1_U9JvJbhsVYC1Ca","slug":"agentdiet-rag-diet-swarm-execute-context-window-distiller-c3bae5d5","name":"AgentDiet RAG-Diet Swarm Execute — 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/swarm-execute?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_k46rtE2GVzfgWk1mslVeU","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 AI context windows (RAG/agent inputs) to reduce token usage by up to 85-91% via a deterministic swarm execution node, billed in USDC on Base.","exampleAgentPrompt":"Can you compress this RAG context query through AgentDiet's swarm execute node to reduce token usage — I want to see the compression ratio it achieves?","exampleUseCases":[{"title":"Token cost reduction in LLM pipeline","prompt":"Take this large document context and run it through the RAG-Diet swarm to compress it down before I send it to GPT-4 — I need to know how much token reduction I'm getting."},{"title":"A2A agent context trimming","prompt":"My agent-to-agent pipeline is blowing past the context limit — can you run the current context window through AgentDiet's distiller to slim it down so it fits within the token budget?"},{"title":"RAG query optimization audit","prompt":"I want to test AgentDiet's compression on this search query: 'What are the latest developments in AI safety?' — run it through the swarm execute endpoint and show me the compression ratio proof."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled output, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), demonstrating how much the context window was reduced.","failureModes":["Missing required 'input' field or 'type'/'method' sub-fields returns a schema validation error","Invalid HTTP method enum value (not GET or POST) causes rejection","Payment not settled in USDC on Base results in 402 Payment Required","Query param 'query' absent may return empty or error data","Service unavailable or swarm node timeout returns a non-ok status"],"whenToPreferThis":"Choose this endpoint when you need deterministic, metered context compression for AI agent pipelines — especially when you're hitting token limits in RAG, MCP, or A2A workflows and need a verifiable compression ratio proof. Prefer it over manual chunking or client-side truncation when you want a structured, paid microservice with on-chain settlement on Base in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:57.091Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-swarm-execute-context-window-distiller-c3bae5d5"}