create_draft_bill
Creates a draft bill by adding specified products and quantities to it. Use to generate a bill draft from product IDs.
Instructions
Creates a draft bill and adds the provided products to it.
Args:
products: A list of products, each element of this list should be a python dictionary of the format:
- prod_id: int, a unique identifier for the product (must be a positive value)
- quantity: int, quantity of the product (must be a positive value and cannot be zero)
Example Usage for LLM:
User: "Create a bill for 2 units of product 101 and 5 units of product 102"
LLM Input:
{
"products": [
{"prod_id": 101, "quantity": 2},
{"prod_id": 102, "quantity": 5}
]
}
Returns:
A confirmation message or an error message in json format if the request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| products | Yes |