{
"items": [
"fast",
"safe",
"cheap"
],
"weights": [
0.2,
0.6,
0.2
],
"seed": "choice-7"
}
Portable intent card · agent-ops-math
Seeded Weighted Choice API for agents
Seeded Weighted Choice: selects one item using non-negative caller weights using only bounded caller-supplied values. Call when you need a bounded seeded weighted choice result 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 or Solana. 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.
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"}'
{
"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