Skip to content
Fourohtwo

agentdiet-schema-repair

agentdiet.dev/v1/schema-repair

agentdiet-schema-repair: Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/json-repair) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash.

BaseAnswering
GEThttps://agentdiet.dev/v1/schema-repair

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agentdiet.dev/v1/schema-repair?raw_json=%7B%22status%22%3A+%22ok%22%2C+%27items%27%3A+%5B1%2C+2%2C+3%2C%5D%2C%7D");
console.log(await res.json());

Example input

{
  "raw_json": "{\"status\": \"ok\", 'items': [1, 2, 3,],}"
}