{
"items": [
"a",
"b",
"c",
"d"
],
"partitions": [
"small",
"large"
],
"weights": [
1,
3
],
"seed": "weighted-part-1"
}
Agent operations math · agent-ops-math
Seeded Weighted Partition
Seeded Weighted Partition: Seeded Weighted Partition assigns items to partitions using reproducible capacity weights from bounded caller-supplied values without an external provider. Call Seeded Weighted Partition 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 Partition 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.
One-command purchase
Run it from an agent.
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-weighted-partition -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"items":["a","b","c","d"],"partitions":["small","large"],"weights":[1,3],"seed":"weighted-part-1"}'
{
"schema": "delx/util-seeded-weighted-partition/v1",
"operation": "seeded_decision:seeded_weighted_partition",
"status": "pass",
"result": {
"assignments": [
{
"item": "a",
"partition": "large"
},
{
"item": "b",
"partition": "large"
},
{
"item": "c",
"partition": "large"
},
{
"item": "d",
"partition": "small"
}
],
"partitions": [
"small",
"large"
]
},
"evidence": {
"input_sha256": "bc355c9f5168958f8f9c83eb5b12ec826acd7f53dd1ff17fc75aa269842d4ca8",
"retained": false,
"external_calls": 0
}
}
Machine-readable evidence