optimize_basket
Optimizes grocery basket cost across one or more stores by evaluating item prices, store visit limits, and the trade-off cost of additional store trips.
Instructions
Compute the cheapest way to buy the basket.
basket: [{"item": "молоко", "quantity": 2, "offers": {"magnit:123456": 89.99, "dixy:123": 92.5}}]
offers: price in rubles per one unit of quantity, for the product you matched in each store; omit a store if it has no suitable product. max_stores: how many different stores the user is willing to visit. extra_store_cost: rubles the user is willing to pay to avoid each extra store visit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basket | Yes | ||
| max_stores | No | ||
| extra_store_cost | No |