{"uid":"cap_kRe128QKtEUKZ4Qq8wwdl","slug":"delx-commerce-seeded-candidate-subset-ac5f6be7","name":"Delx Commerce — Seeded Candidate Subset","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/seeded-candidate-subset?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Candidate Subset; used only for this bounded calculation and processed in memory without retention."},"count":{"type":"integer","description":"Count supplied to Seeded Candidate Subset; used only for this bounded calculation and processed in memory without retention."},"candidates":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Candidates supplied to Seeded Candidate Subset; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":["b","c"],"indices":[1,2]},"schema":"delx/util-seeded-candidate-subset/v1","status":"pass","evidence":{"retained":false,"input_sha256":"a4bf32161649486846b6869f79571ff2228cc007235b36c78983971fe74db115","external_calls":0},"operation":"seeded_decision:seeded_candidate_subset"}},"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_yk5gQykoFG3Til6vJgugp","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 selects a reproducible subset of items from a candidate list using a seed value, returning chosen items and their indices.","exampleAgentPrompt":"From this list of candidates — ['alpha','beta','gamma','delta','epsilon'] — pick exactly 3 items using the seed 'abc123', and make sure the selection is deterministic and reproducible.","exampleUseCases":[{"title":"Reproducible A/B test group assignment","prompt":"I have a list of 50 user IDs and I need to deterministically select 10 of them for a test group using the seed 'experiment-42' so the same users are always chosen when I rerun this."},{"title":"Seeded random prompt variant selection","prompt":"I have 8 different response templates and I want to pick 3 of them reproducibly using the seed 'session-789' so the same variants are always returned for the same session."},{"title":"Fair lottery draw from nominees","prompt":"From this list of 20 nominee names, randomly select 5 winners using the seed 'draw-2024-june' so the draw is verifiable and repeatable if anyone audits it later."}],"resultDescription":"Returns a JSON object with the selected subset items and their original indices from the candidate array, along with an operation schema identifier, pass/fail status, and an evidence block containing a SHA-256 hash of the input and confirmation that no data was retained and no external calls were made.","failureModes":["Missing or invalid seed string causes computation failure","Count exceeds the number of candidates provided","Candidates array exceeds 256 items limit","Payment not provided or rejected (x402 flow fails)","Malformed input schema returns validation error"],"whenToPreferThis":"Use this endpoint when you need a verifiable, reproducible, and auditable way to select a fixed-size subset from a list of candidates deterministically. It is ideal for agent workflows requiring fairness, auditability, or consistent behavior across reruns given the same seed. Prefer it over local randomization when you need tamper-evident evidence (SHA-256 input hash, no-retention guarantee) and micropayment-gated accountability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.233Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-candidate-subset-ac5f6be7"}