{"uid":"cap_AIa3_vIgE6xOwW--tFpxi","slug":"agentdiet-rag-context-window-distiller-workflow-executor-a52f73a9","name":"AgentDiet RAG Context Window Distiller — Workflow Executor","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/workflows/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_8swKFZG2O1s6rFy5l2gWr","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":"Executes a deterministic context-compression workflow that distills and de-bloats AI context windows, reducing token usage by up to 91% via RAG-based distillation.","exampleAgentPrompt":"Compress this query's retrieved context using AgentDiet's RAG distiller so I can fit it into a smaller context window — run it as a GET workflow with the query 'what are the key findings from this research report?'","exampleUseCases":[{"title":"LLM cost reduction for RAG pipelines","prompt":"My RAG pipeline is pulling in way too many tokens per query and my OpenAI bill is out of control — can you run the AgentDiet context distiller on this query to compress the retrieved chunks before I send them to the model?"},{"title":"Long-document Q&A context trimming","prompt":"I have a huge document I want to ask questions about but it won't fit in the context window — use AgentDiet to distill and compress the content down so it fits, using the query 'summarize the main legal obligations in this contract'."},{"title":"A2A agent pipeline token budget enforcement","prompt":"My agent pipeline is hitting token limits when passing context between agents — can you run the AgentDiet workflow executor with a GET on the query 'extract action items from this meeting transcript' to compress the context before the next agent step?"}],"resultDescription":"A JSON object containing a 'data' field with the compressed/distilled output, a 'status' field indicating success, and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming how much the context was reduced.","failureModes":["Missing required 'input' object or 'type'/'method' fields returns a validation error","Invalid method enum value (not GET or POST) causes schema rejection","Empty or malformed query string may result in low-quality distillation output","Payment failure or insufficient USDC balance returns a 402 Payment Required response","Service unavailability or upstream workflow node errors may return a non-ok status"],"whenToPreferThis":"Choose this endpoint when you need to programmatically compress or distill large retrieved context (RAG chunks, documents, agent memory) before passing it to an LLM, especially when token budgets are tight or LLM API costs are a concern. It is particularly suited for A2A and agentic pipeline workflows where context is passed between nodes and must be kept under a token ceiling. Prefer it over generic summarization endpoints when you need a deterministic compression ratio proof and micropayment-settled ($0.01 USDC) per-call billing on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:37.025Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-context-window-distiller-workflow-executor-a52f73a9"}