{"uid":"cap_VRaA3GnFOHkxC0ULRiMvP","slug":"delx-seeded-weighted-partition-1f66b0fb","name":"Delx Seeded Weighted Partition","description":"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…","url":"https://api.delx.ai/api/v1/x402/seeded-weighted-partition","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Items supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."},"weights":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Weights supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."},"partitions":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Partitions supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"partitions":["small","large"],"assignments":[{"item":"a","partition":"large"},{"item":"b","partition":"large"},{"item":"c","partition":"large"},{"item":"d","partition":"small"}]},"schema":"delx/util-seeded-weighted-partition/v1","status":"pass","evidence":{"retained":false,"input_sha256":"bc355c9f5168958f8f9c83eb5b12ec826acd7f53dd1ff17fc75aa269842d4ca8","external_calls":0},"operation":"seeded_decision:seeded_weighted_partition"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_727acFoFy32C6fkIKTGZV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically partitions a list of items into named buckets according to per-item weights and a seed, producing reproducible weighted assignments.","exampleAgentPrompt":"Partition these four items — 'a', 'b', 'c', 'd' — across two buckets called 'small' and 'large' using weights [1, 3] and the seed 'my-experiment-42', so the assignments are reproducible.","exampleUseCases":[{"title":"A/B test traffic bucket assignment","prompt":"I need to split these 10 user IDs across two buckets called 'control' and 'treatment' with weights 30 and 70, using seed 'ab-test-2024-q1' so the assignments stay consistent every time I run it."},{"title":"Weighted task distribution across workers","prompt":"Distribute these 8 job IDs — ['job1','job2','job3','job4','job5','job6','job7','job8'] — across three workers named 'worker-a', 'worker-b', 'worker-c' with weights 1, 2, 3, using seed 'daily-run-7' so I get the same split each day."},{"title":"Reproducible content routing for agent pipeline","prompt":"Assign these 5 content pieces ['article1','article2','article3','article4','article5'] to two processing pipelines called 'fast-lane' and 'slow-lane' with weights 4 and 1, seeded with 'pipeline-seed-99' so the routing is deterministic."}],"resultDescription":"Returns a JSON object containing the named partitions and a list of item-to-partition assignments, alongside evidence fields confirming no data was retained and no external calls were made, plus an input SHA-256 for auditability.","failureModes":["Mismatched array lengths between items and weights returns a validation error","Exceeding 256 items or 256 weights causes a rejection","Empty partitions array results in an unassignable error","Non-integer weight values fail schema validation","Missing required fields (seed, items, weights, partitions) return a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible weighted partitioning of a list — i.e., the same seed always produces the same assignments. Prefer it over random shuffles or unweighted splits when proportional allocation and auditability matter. It is ideal for A/B testing, agent task routing, and data pipeline distribution where reproducibility and zero data retention are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:52.686Z","isFirstParty":false}