{"uid":"cap_7EoGApY0857j9udARD3zf","slug":"agentrxi-cached-answer-lookup-74cd8f5d","name":"AgentRXI Cached Answer Lookup","description":"Shared answer cache: a recent cited answer to a question similar to yours (from /v1/answer) for a quarter of the price. Not charged when nothing close enough is cached.","url":"https://agentrxi.com/v1/answer/cached?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"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string"},"max_age_days":{"type":"integer","description":"Default 7"},"min_similarity":{"type":"number","description":"0.7-0.99, default 0.88"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UBp4-I5r6fl6b05-KRz9x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a recently cached cited answer to a semantically similar question, at one-quarter the price of a fresh answer generation.","exampleAgentPrompt":"Check the shared answer cache to see if there's already a recent answer (within the last 5 days, similarity at least 0.90) to this question: 'What are the current federal interest rates and how do they affect mortgage pricing?'","exampleUseCases":[{"title":"Budget-conscious research question lookup","prompt":"Before running a full search, check the answer cache to see if anyone has recently asked something like 'What were the top causes of inflation in 2023?' — use default similarity and a max age of 7 days."},{"title":"Repeated agent query deduplication","prompt":"My agent keeps asking the same kind of question about EU GDPR compliance requirements — check the shared cache for a similar recent answer so we don't keep paying full price, minimum similarity 0.88."},{"title":"Real-time fact check with citations","prompt":"Is there a cached cited answer from the last 3 days that's at least 90% similar to 'What is the current population of Tokyo?' — I want the citations too if there's a match."}],"resultDescription":"When a sufficiently similar cached answer exists, returns the cached answer text with citations and metadata such as similarity score, the original matched question, and the cache age. If no close enough match is found, nothing is returned and no charge is applied.","failureModes":["No cache hit: no answer close enough to the query exists — endpoint returns empty/no-match response and the caller is not charged","Similarity threshold too high: setting min_similarity above 0.95 may result in frequent cache misses","Stale cache: max_age_days set too low may exclude otherwise relevant answers","Malformed query parameter: missing or empty 'q' parameter causes a validation error","Cache cold start: for niche or rare questions, the shared cache may never have a matching entry"],"whenToPreferThis":"Use this endpoint when you want a cited answer to a question but want to minimize cost by checking whether a semantically similar question has already been answered recently. Ideal as a first step before calling the full /v1/answer endpoint — if a cache hit is returned, you pay $0.005 instead of $0.02+. Best for frequently asked or common factual questions where a slightly paraphrased prior answer is acceptable. Not suitable when you need a guaranteed fresh answer or the exact question is highly unique or time-sensitive beyond your max_age_days tolerance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:50.626Z","isFirstParty":false,"canonicalSlug":"agentrxi-cached-answer-lookup-74cd8f5d"}