predict
Predict a part's target value from a model and supplied features; get an in_domain indicator to verify the estimate's reliability before quoting.
Instructions
Predict the target value (e.g. price) for a single part.
Pass the model_id from list_models and a dictionary of feature values
matching the model's expected features. Example:
{"Weight": 15, "Region": "EU", "Supplier": "A"}
Returns an `in_domain` block alongside the prediction — read it before you
quote the number. 'out_of_domain' means the part sits outside the data the
model was built on (an unseen supplier, a spec far past anything observed),
so the estimate isn't reliable no matter how confident it looks; quote
`in_domain.say_to_user` and point the user at a real quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| features | Yes | ||
| model_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |