Takes two to twelve answers and returns a field-by-field comparison
agent.halowerk.com/v1/result-consensus
Takes two to twelve answers and returns a field-by-field comparison. For JSON answers every leaf path is compared across responders: a path is agreed when all responders that supplied it carry the same value, conflicting when they differ, and partial when some omitted it. Numbers count as equal inside a relative tolerance you set.
POST
https://agent.halowerk.com/v1/result-consensusUptimeNot checked yet
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://agent.halowerk.com/v1/result-consensus", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"answers":[{"responder":"model-a","value":"Paris"},{"responder":"model-b","value":"Paris"},{"responder":"model-c","value":"Lyon"}],"number_tolerance":0.001,"text_similarity_threshold":0.6}),
});
console.log(await res.json());Example input
{
"answers": [
{
"responder": "model-a",
"value": "Paris"
},
{
"responder": "model-b",
"value": "Paris"
},
{
"responder": "model-c",
"value": "Lyon"
}
],
"number_tolerance": 0.001,
"text_similarity_threshold": 0.6
}