{
 "x402Version": 1,
 "name": "Think: self-consistency answers",
 "description": "An LLM answer sampled several times and judged, not a single completion: /vote asks a closed question n times and returns the majority answer with its margin; /consensus samples n open answers and synthesizes the one most supported, naming where the samples disagreed. Workers AI (Llama 3.1 8B, or Llama 3.3 70B). Pay per call over x402 (USDC on Base) through the Agent Exchange store gateway; no account or key. Free sample: https://think.agentexchange.work/sample.json",
 "payment": {
  "rail": "x402",
  "gateway": "https://store.agentexchange.work/gw/think",
  "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c"
 },
 "free_resources": [
  "https://think.agentexchange.work/",
  "https://think.agentexchange.work/sample.json",
  "https://think.agentexchange.work/.well-known/x402"
 ],
 "count": 2,
 "resources": [
  {
   "resource": "https://think.agentexchange.work/vote",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.005,
   "mimeType": "application/json",
   "description": "A closed question answered by majority vote over n independent samples (self-consistency): give q and, optionally, options (comma-separated); returns the winning answer, the vote counts and the margin, so an agent can trust or reject it by number. n up to 7, default 5. Pay 0.005 USDC through https://store.agentexchange.work/gw/think/vote?q=Is+the+Base+chain+id+8453%3F&options=yes,no",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "5000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://think.agentexchange.work/vote",
     "description": "A closed question answered by majority vote over n independent samples (self-consistency): give q and, optionally, options (comma-separated); returns the winning answer, the vote counts and the margin, so an agent can trust or reject it by number. n up to 7, default 5. Pay 0.005 USDC through https://store.agentexchange.work/gw/think/vote?q=Is+the+Base+chain+id+8453%3F&options=yes,no",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "q": {
         "type": "string",
         "required": true,
         "description": "the question"
        },
        "options": {
         "type": "string",
         "required": false,
         "description": "comma-separated allowed answers; omitted: a short free answer per sample, grouped by exact match"
        },
        "n": {
         "type": "string",
         "required": false,
         "description": "samples, 1 to 7 (default 5)"
        },
        "model": {
         "type": "string",
         "required": false,
         "description": "llama-3.1-8b (default) or llama-3.3-70b"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "llm",
    "inference",
    "self-consistency",
    "reasoning",
    "voting",
    "ai"
   ]
  },
  {
   "resource": "https://think.agentexchange.work/consensus",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.01,
   "mimeType": "application/json",
   "description": "An open question answered n times independently, then synthesized by the same model into the answer most supported by the samples, with the disagreements listed; returns the consensus, the n raw samples and an agreement score. n up to 5, default 3. Pay 0.01 USDC through https://store.agentexchange.work/gw/think/consensus?q=What+are+the+risks+of+running+an+x402+seller%3F",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "10000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://think.agentexchange.work/consensus",
     "description": "An open question answered n times independently, then synthesized by the same model into the answer most supported by the samples, with the disagreements listed; returns the consensus, the n raw samples and an agreement score. n up to 5, default 3. Pay 0.01 USDC through https://store.agentexchange.work/gw/think/consensus?q=What+are+the+risks+of+running+an+x402+seller%3F",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "q": {
         "type": "string",
         "required": true
        },
        "n": {
         "type": "string",
         "required": false,
         "description": "samples, 1 to 5 (default 3)"
        },
        "model": {
         "type": "string",
         "required": false,
         "description": "llama-3.1-8b (default) or llama-3.3-70b"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "llm",
    "inference",
    "self-consistency",
    "reasoning",
    "voting",
    "ai"
   ]
  }
 ]
}