DELXCOMMERCE Payable now

Portable intent card · agent-ops-math

Seeded Weighted Choice API for agents

Seeded Weighted Choice: Seeded Weighted Choice selects one item using non-negative caller weights from bounded caller-supplied values without an external provider. Call Seeded Weighted Choice when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Weighted Choice as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Uses Python pseudorandomness for reproducibility, not cryptography, lotteries with value, security tokens, gambling, or custody. Advisory output only; the buyer owns authorization, payment policy, and production decisions.

Seeded Weighted Choice APISeeded Weighted Choice for agentspay per result APIx402 APIno API key

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/seeded-weighted-choice -m POST -H 'x-delx-source: intent-card-seeded-weighted-choice-api' --max-amount 0.001 -b '{"items":["fast","safe","cheap"],"weights":[0.2,0.6,0.2],"seed":"choice-7"}'
Example inputPOST /api/v1/x402/seeded-weighted-choice
{
  "items": [
    "fast",
    "safe",
    "cheap"
  ],
  "weights": [
    0.2,
    0.6,
    0.2
  ],
  "seed": "choice-7"
}
Agent discoverydelx/intent-card/v1
{
  "intent": "Seeded Weighted Choice for an agent workflow",
  "tool_name": "util_seeded_weighted_choice",
  "price_usdc": "0.001",
  "machine_url": "https://commerce.delx.ai/intents/seeded-weighted-choice-api.json"
}

Portable and inspectable

Share the intent, not a directory search.