consume_product
Record product consumption and retrieve remaining stock. Specify product by name, barcode, or fragment, with optional amount and spoilage flag.
Instructions
Record that stock was used up, and report what is left.
Args: product: Product name, description fragment, or barcode. Must identify exactly one product — this raises rather than guessing between two. amount: How much, in the product's own stock unit. Items tracked by weight need the weight, so "a teaspoon of turmeric" is roughly amount=5, not 1. Check list_stock's qty first if unsure. spoiled: True when it was thrown away rather than eaten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| product | Yes | ||
| spoiled | No |