Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/cache-key-check

Given the inputs of a cached computation (each declared as influencing the output or not, optionally volatile) and the list of inputs the cache key is built from, finds influential inputs missing from the key (stale or wrong hits), volatile inputs inside it (the cache never hits), unknown-influence inputs left out, and, for private results, a missing tenant dimension (cross-tenant leak). When valu

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/cache-key-check

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/cache-key-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"scope":"search:v3","inputs":[{"name":"query","value":"shoes","influencesOutput":"yes"},{"name":"locale","value":"de-DE","influencesOutput":"yes"},{"name":"requestId","value":"r-1","volatile":true,"influencesOutput":"no"}],"keyParts":["query"]}),
});
console.log(await res.json());

Example input

{
  "scope": "search:v3",
  "inputs": [
    {
      "name": "query",
      "value": "shoes",
      "influencesOutput": "yes"
    },
    {
      "name": "locale",
      "value": "de-DE",
      "influencesOutput": "yes"
    },
    {
      "name": "requestId",
      "value": "r-1",
      "volatile": true,
      "influencesOutput": "no"
    }
  ],
  "keyParts": [
    "query"
  ]
}