DELXCOMMERCE Payable now

Portable intent card · agent-ops-math

Seeded Weighted Sample API for agents

Seeded Weighted Sample: Seeded Weighted Sample samples unique items using caller weights without replacement from bounded caller-supplied values without an external provider. Call Seeded Weighted Sample 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 Sample 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 Sample APISeeded Weighted Sample 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-sample -m POST -H 'x-delx-source: intent-card-seeded-weighted-sample-api' --max-amount 0.001 -b '{"items":["a","b","c","d"],"weights":[1,2,3,4],"count":2,"seed":"sample-1"}'
Example inputPOST /api/v1/x402/seeded-weighted-sample
{
  "items": [
    "a",
    "b",
    "c",
    "d"
  ],
  "weights": [
    1,
    2,
    3,
    4
  ],
  "count": 2,
  "seed": "sample-1"
}
Agent discoverydelx/intent-card/v1
{
  "intent": "Seeded Weighted Sample for an agent workflow",
  "tool_name": "util_seeded_weighted_sample",
  "price_usdc": "0.001",
  "machine_url": "https://commerce.delx.ai/intents/seeded-weighted-sample-api.json"
}

Portable and inspectable

Share the intent, not a directory search.