infer_feature_contract
Propose a feature contract from sample pricing requests: nested objects are flattened by path, lists reduced to counts, sums, maxima and has-value flags, numbers binned, and fields that identify someone left out, each with the reason. Nothing is stored; save the result with set_feature_contract. Needs a Last Price credential with routing read scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opt_in | No | The customer segment and geo fields are used only when listed here, as in buyer-aware pricing. | |
| buckets | No | Bins for each number, at its quantiles. Default 4. | |
| samples | Yes | Sample request contexts, as sent to compute_price in context, metadata included. Not stored. | |
| min_coverage | No | Share of samples a field must appear in. Default 0.05. |