score_options
Score and rank disrupted-flight recovery options using transparent cost math—cash paid, refunds, credits, and arrival delay—so you can identify the lowest-cost choice that meets the deadline.
Instructions
Score and rank options with the traveler's objective. Do the math here, not in your head.
total_cost = cash_paid - cash_refunded - credit x credit_value_factor + hours_late x value_of_time.
It is a COST, so lower is better; say that whenever you show it to the traveler.
Options missing the deadline or over the spend cap can't be the pick. Every amount and time
must cite the call_id it came from; numbers that don't appear there are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | ||
| deadline_local | Yes | ||
| original_arrival_local | Yes | ||
| original_arrival_call_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||