{"uid":"cap_4HOVJ-jgWdqm8c76rqspu","slug":"delx-seeded-reservoir-sample-d2a2f9d7","name":"Delx Seeded Reservoir Sample","description":"Seeded Reservoir Sample: Seeded Reservoir Sample selects a bounded reproducible sample from caller items from bounded caller-supplied values without an external provider. Call Seeded Reservoir 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 Reservoir Sample as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. Fi…","url":"https://api.delx.ai/api/v1/x402/seeded-reservoir-sample","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."},"count":{"type":"integer","description":"Count supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Items supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":[1,3,5],"indices":[0,2,4]},"schema":"delx/util-seeded-reservoir-sample/v1","status":"pass","evidence":{"retained":false,"input_sha256":"fe584420fbe1d387c960f909168094961a1eae04083c9ffe25a052869b8a68e5","external_calls":0},"operation":"seeded_decision:seeded_reservoir_sample"}},"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_rcqIwQU5s-x5VNAI4x5VA","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":"Performs a reproducible reservoir sampling of an integer array using a seed string, returning a fixed-count random subset with the original indices.","exampleAgentPrompt":"Using the seed 'launch-2024', randomly pick 3 items from this list of integers [1, 2, 3, 4, 5, 6, 7, 8] in a reproducible way — I need to know which items were chosen and their original positions.","exampleUseCases":[{"title":"Reproducible A/B test assignment","prompt":"I have a list of user IDs as integers and I need to reproducibly select 50 of them for a test group — use seed 'experiment-alpha-v1' so I can always reconstruct the same sample later."},{"title":"Fair random prize draw","prompt":"We have 200 entries numbered 0 to 199 and I need to pick 5 winners using seed 'sweepstakes-june-2025' so the draw is auditable and reproducible."},{"title":"Deterministic batch scheduling","prompt":"Take this list of job IDs [10, 20, 30, 40, 50, 60, 70, 80] and seed 'batch-run-42' to randomly schedule 4 of them for the next processing window, giving me the selected IDs and their positions."}],"resultDescription":"Returns a JSON object containing: the sampled integer items, their original indices in the input array, a status of 'pass', the SHA-256 hash of the input for auditability, confirmation that no data was retained, the count of external calls made (always 0), and an operation identifier string.","failureModes":["Array exceeds 256-item maximum — request rejected","Count exceeds the number of available items — may return error or partial result","Malformed seed string (exceeds 8192 chars) — validation error","Missing required fields (seed, count, or items) — 400-level error","Non-integer values in items array — schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need reproducible, auditable random subset selection from an integer list — especially when the same seed must always yield the same sample (e.g. experiments, draws, scheduling). It is preferable to implementing local shuffling when you need tamper-evident proof via input hashing and a guarantee of no data retention or external calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:09:37.940Z","isFirstParty":false}