{"uid":"cap_1vEiI80t7SrxT94i9utmI","slug":"delx-seeded-multivariate-assignment-389a7bab","name":"Delx Seeded Multivariate Assignment","description":"Seeded Multivariate Assignment: Seeded Multivariate Assignment assigns a stable subject to one weighted variant from bounded caller-supplied values without an external provider. Call Seeded Multivariate Assignment 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 Multivariate Assignment as versioned deterministic JSON. Price: $0.001 USDC…","url":"https://api.delx.ai/api/v1/x402/seeded-multivariate-assignment","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"subject":{"type":"string","maxLength":8192,"description":"Subject supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"weights":{"type":"array","items":{"type":"number"},"maxItems":256,"description":"Weights supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"variants":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Variants supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"index":2,"variant":"copy-b"},"schema":"delx/util-seeded-multivariate-assignment/v1","status":"pass","evidence":{"retained":false,"input_sha256":"d4cc54b28dc2c9127391313e2d1f0fdfeb7409cb441c2107a91ae423c62cc39c","external_calls":0},"operation":"seeded_decision:seeded_multivariate_assignment"}},"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_KXNQIPi2LtaYJicChLubc","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 assigns a variant from a weighted list using a seed and subject, enabling reproducible A/B or multivariate test bucketing.","exampleAgentPrompt":"Assign user 'user-42' to one of three variants — 'control', 'copy-a', or 'copy-b' — using seed 'experiment-2024-homepage' and weights [0.5, 0.25, 0.25], and tell me which variant they get.","exampleUseCases":[{"title":"Feature flag rollout bucketing","prompt":"I'm rolling out a new checkout flow to 20% of users — assign user 'acct-8821' to either 'new-checkout' or 'legacy-checkout' using seed 'checkout-rollout-v3' with weights [0.2, 0.8] so I get the same answer every time for that user."},{"title":"Multivariate copy testing","prompt":"I have three email subject lines — 'subject-a', 'subject-b', and 'subject-c' — each with equal weight. Use seed 'email-campaign-jan' and subject 'subscriber-99123' to deterministically assign which one this subscriber should see."},{"title":"Personalized content variant selection","prompt":"For my recommendation engine, assign session 'sess-xyz789' to one of these content layouts — 'grid', 'list', or 'carousel' — using seed 'layout-test-q1' with weights [0.5, 0.3, 0.2]. I need the assignment to be stable for the same session every time."}],"resultDescription":"Returns a JSON object containing the assigned variant name and its index in the variants array, along with a schema identifier, status, and an evidence block confirming no data was retained, the SHA-256 hash of the input, and zero external calls made.","failureModes":["Mismatched lengths between variants and weights arrays — may return an error or undefined behavior","Seed or subject strings exceeding 8192 characters — request rejected","Weights array exceeding 256 items — request rejected","Variants array exceeding 256 items — request rejected","Malformed input types (e.g. non-numeric weights) — validation error","Payment failure via x402 protocol — 402 response, no computation performed"],"whenToPreferThis":"Choose this endpoint when you need a stateless, reproducible, weighted variant assignment that produces the same result for the same seed+subject combination every time, without any server-side state or user data retention. Prefer it over custom hashing logic when you want an auditable evidence trail (input hash, no external calls) and need weighted (non-uniform) probability splits across more than two variants.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:51.928Z","isFirstParty":false}