Skill metadata
- Unit
- discount-policy
- Version
- latest
- Model
- discount_policy
Run the governed discount_policy decision model. The model returns deterministic outputs for the supplied inputs; the same inputs always produce the same outputs.
Scope
Answers order-specific questions about discount eligibility and applicable discount treatment. Inspect recorded executions and provide Aletyx Platform execution links.
Does not create unsupported discount decisions, revise policy, or predict outcomes from missing Order data. Stop and tell the user — do not pad with model judgment.
Inputs
All required fields must be supplied. Ask for missing values before running the model.
Execution evidence
Always link the executions performed with this skill. Use the recorded inputs, outputs, status, and published version.
---
name: discount-policy-discount-policy
description: Runs the discount_policy decision model from the Aletyx Platform catalog.
metadata:
tenant-id: aletyx
unit-name: discount-policy
version-number: latest
model-name: discount_policy
generated-from: decision-model
---
Run the governed discount_policy decision model.
The model returns deterministic outputs for the supplied inputs;
the same inputs always produce the same outputs.
## Scope
Run order-specific discount requests through the published model.
Do not invent discount decisions, revise policy, or predict
outcomes from missing Order data.
## Inputs
Order is required. Supply Customer Type and Order Size.
Ask for any missing required values before running the model.
## Run the model
POST http://localhost:8080/api/v1/runtime/aletyx/discount-policy/latest/decisions/discount_policy
X-Aletyx-Api-Key: $ALETYX_API_KEY
Content-Type: application/json
{
"Order": {
"Customer Type": "Business",
"Order Size": 5
}
}
## Result
Discount Assessment returns Discount Rate and Applied Rule.
## Execution evidence
Read X-Aletyx-Execution-Id, X-Aletyx-Execution-Recorded,
and X-Aletyx-Execution-Url from the response.
Link the returned execution URL when execution was recorded.
Never invent an execution link.