{
  "format": "delx/intent-card/v1",
  "id": "seeded-weighted-choice-api",
  "intent": "Seeded Weighted Choice for an agent workflow",
  "title": "Seeded Weighted Choice API for agents",
  "description": "Seeded Weighted Choice: Seeded Weighted Choice selects one item using non-negative caller weights from bounded caller-supplied values without an external provider. Call Seeded Weighted Choice 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 Choice 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 Choice API",
    "Seeded Weighted Choice 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-choice-api",
  "machine_url": "https://commerce.delx.ai/intents/seeded-weighted-choice-api.json",
  "recommendation": {
    "tool_name": "util_seeded_weighted_choice",
    "service_name": "Seeded Weighted Choice",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/seeded-weighted-choice",
    "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 Choice; used only for this bounded calculation and processed in memory without retention."
        },
        "weights": {
          "type": "array",
          "maxItems": 256,
          "items": {
            "type": "number"
          },
          "description": "Weights supplied to Seeded Weighted Choice; used only for this bounded calculation and processed in memory without retention."
        },
        "seed": {
          "type": "string",
          "maxLength": 8192,
          "description": "Seed supplied to Seeded Weighted Choice; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "items",
        "weights",
        "seed"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "items": [
        "fast",
        "safe",
        "cheap"
      ],
      "weights": [
        0.2,
        0.6,
        0.2
      ],
      "seed": "choice-7"
    },
    "example_output": {
      "schema": "delx/util-seeded-weighted-choice/v1",
      "operation": "seeded_decision:seeded_weighted_choice",
      "status": "pass",
      "result": {
        "selected": "fast",
        "index": 0
      },
      "evidence": {
        "input_sha256": "c6638a85aa14e9c05d911356c0a5fbd65272dc5841db91ed4d836ca7d4bf523b",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-weighted-choice -m POST -H 'x-delx-source: intent-card-seeded-weighted-choice-api' --max-amount 0.001 -b '{\"items\":[\"fast\",\"safe\",\"cheap\"],\"weights\":[0.2,0.6,0.2],\"seed\":\"choice-7\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-seeded-weighted-choice-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-choice"
  }
}
