{
"consecutive_failures": 5,
"open_after": 5,
"cooldown_ms": 1000,
"open_for_ms": 200
}
Portable intent card · agent-workflow
Circuit Breaker State API for agents
Derive closed, open, or half-open circuit state from failure and cooldown inputs — call when deciding closed/open/half-open from failure counters. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.
Intent to transaction
One command, attributed.
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/circuit-breaker-state -m POST -H 'x-delx-source: intent-card-circuit-breaker-state-api' --max-amount 0.003 -b '{"consecutive_failures":5,"open_after":5,"cooldown_ms":1000,"open_for_ms":200}'
{
"intent": "Circuit Breaker State for an agent workflow",
"tool_name": "util_circuit_breaker_state",
"price_usdc": "0.003",
"machine_url": "https://commerce.delx.ai/intents/circuit-breaker-state-api.json"
}
Portable and inspectable