human
I need to generate an invoice for John Doe. He bought 3 units of Apples at $2 per unit and 2 units of Oranges at $3 per unit. And, I am looking for a vegan Italian pasta recipe.
function_call
[{"name": "generate_invoice", "arguments": {"customer_name": "John Doe", "items": [{"product_name": "Apples", "quantity": 3, "price_per_unit": 2}, {"product_name": "Oranges", "quantity": 2, "price_per_unit": 3}]}}, {"name": "search_recipe", "arguments": {"query": "pasta", "cuisine": "Italian", "diet": "vegan"}}]
[{"name": "generate_invoice", "description": "Generate an invoice for a customer's purchase", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"product_name": {"type": "string", "description": "The name of the product"}, "quantity": {"type": "integer", "description": "The quantity of the product"}, "price_per_unit": {"type": "number", "description": "The price per unit of the product"}}, "required": ["product_name", "quantity", "price_per_unit"]}}}, "required": ["customer_name", "items"]}}, {"name": "search_recipe", "description": "Search for a recipe", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query for the recipe"}, "cuisine": {"type": "string", "description": "The cuisine type of the recipe"}, "diet": {"type": "string", "description": "The dietary restriction of the recipe"}}}}]
[{"name": "generate_invoice", "arguments": {"customer_name": "John Doe", "items": [{"product_name": "Apples", "quantity": 3, "price_per_unit": 2}, {"product_name": "Oranges", "quantity": 2, "price_per_unit": 3}]}}, {"name": "search_recipe", "arguments": {"query": "pasta", "cuisine": "Italian", "diet": "vegan"}}]