{
  "format": "delx/intent-card/v1",
  "id": "seeded-weighted-sample-api",
  "intent": "Seeded Weighted Sample for an agent workflow",
  "title": "Seeded Weighted Sample API for agents",
  "description": "Seeded Weighted Sample: Seeded Weighted Sample samples unique items using caller weights without replacement from bounded caller-supplied values without an external provider. Call Seeded Weighted 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 Weighted Sample 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.",
  "keywords": [
    "Seeded Weighted Sample API",
    "Seeded Weighted Sample for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/seeded-weighted-sample-api",
  "machine_url": "https://commerce.delx.ai/intents/seeded-weighted-sample-api.json",
  "recommendation": {
    "tool_name": "util_seeded_weighted_sample",
    "service_name": "Seeded Weighted Sample",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/seeded-weighted-sample",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "maxItems": 256,
          "items": {
            "type": "string",
            "maxLength": 8192
          },
          "description": "Items supplied to Seeded Weighted Sample; used only for this bounded calculation and processed in memory without retention."
        },
        "weights": {
          "type": "array",
          "maxItems": 256,
          "items": {
            "type": "integer"
          },
          "description": "Weights supplied to Seeded Weighted Sample; used only for this bounded calculation and processed in memory without retention."
        },
        "count": {
          "type": "integer",
          "description": "Count supplied to Seeded Weighted Sample; used only for this bounded calculation and processed in memory without retention."
        },
        "seed": {
          "type": "string",
          "maxLength": 8192,
          "description": "Seed supplied to Seeded Weighted Sample; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "items",
        "weights",
        "count",
        "seed"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "items": [
        "a",
        "b",
        "c",
        "d"
      ],
      "weights": [
        1,
        2,
        3,
        4
      ],
      "count": 2,
      "seed": "sample-1"
    },
    "example_output": {
      "schema": "delx/util-seeded-weighted-sample/v1",
      "operation": "seeded_decision:seeded_weighted_sample",
      "status": "pass",
      "result": {
        "items": [
          "a",
          "c"
        ],
        "count": 2
      },
      "evidence": {
        "input_sha256": "4b94fab1aa6acc04be7b55390f0c8075b8e83c859b6ceaccfd3469af77bb03fd",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-weighted-sample -m POST -H 'x-delx-source: intent-card-seeded-weighted-sample-api' --max-amount 0.001 -b '{\"items\":[\"a\",\"b\",\"c\",\"d\"],\"weights\":[1,2,3,4],\"count\":2,\"seed\":\"sample-1\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-seeded-weighted-sample-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/seeded-weighted-sample"
  }
}
