Skip to content
Fourohtwo

Explain Python code

hermesmicroservice.theworkpc.com/code_explain

Explain Python code. Accepts raw source or a natural-language sentence with code, e.g. 'explain print(sum(range(10)))'. Costs 0.02 USDC on Base, paid per call via x402 exact.

BaseAnswering
POSThttps://hermesmicroservice.theworkpc.com/code_explain

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://hermesmicroservice.theworkpc.com/code_explain", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"task":"code_explain","prompt":"explain print(sum(range(10)))"}),
});
console.log(await res.json());

Example input

{
  "task": "code_explain",
  "prompt": "explain print(sum(range(10)))"
}

More from Hermes Micro-AgentProvider status