human
Hi, I need to know the distance between New York and Los Angeles. And, I'm running low on gas. Can you find the nearest gas station for me? I'm currently at latitude 40.7128 and longitude -74.0060. And, I need to book a room at the Hilton for the 15th to the 20th of next month. And, I am looking for a book but I can't remember the title. The author's name is George Orwell.
function_call
[{"name": "calculate_distance", "arguments": {"location1": "New York", "location2": "Los Angeles"}}, {"name": "find_nearest_gas_station", "arguments": {"latitude": 40.7128, "longitude": -74.006}}, {"name": "book_hotel", "arguments": {"hotel_name": "Hilton", "check_in": "2022-05-15", "check_out": "2022-05-20"}}, {"name": "search_books", "arguments": {"author": "George Orwell"}}]
[{"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"location1": {"type": "string", "description": "The first location"}, "location2": {"type": "string", "description": "The second location"}}, "required": ["location1", "location2"]}}, {"name": "calculate_average", "description": "Calculate the average of a list of numbers", "parameters": {"type": "object", "properties": {"numbers": {"type": "array", "items": {"type": "number"}, "description": "The list of numbers"}}, "required": ["numbers"]}}, {"name": "find_nearest_gas_station", "description": "Find the nearest gas station based on current location", "parameters": {"type": "object", "properties": {"latitude": {"type": "number", "description": "The latitude of current location"}, "longitude": {"type": "number", "description": "The longitude of current location"}, "fuel_type": {"type": "string", "description": "The type of fuel required"}}, "required": ["latitude", "longitude"]}}, {"name": "calculate_discount", "description": "Calculate the discounted price", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price"}, "discount_percentage": {"type": "number", "description": "The discount percentage"}}, "required": ["original_price", "discount_percentage"]}}, {"name": "book_hotel", "description": "Book a hotel room", "parameters": {"type": "object", "properties": {"hotel_name": {"type": "string", "description": "The name of the hotel"}, "check_in": {"type": "string", "format": "date", "description": "The check-in date in YYYY-MM-DD format"}, "check_out": {"type": "string", "format": "date", "description": "The check-out date in YYYY-MM-DD format"}}, "required": ["hotel_name", "check_in", "check_out"]}}, {"name": "search_books", "description": "Search for books based on title, author, or genre", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the book"}, "author": {"type": "string", "description": "The author of the book"}, "genre": {"type": "string", "description": "The genre of the book"}}}}]
[{"name": "calculate_distance", "arguments": {"location1": "New York", "location2": "Los Angeles"}}, {"name": "find_nearest_gas_station", "arguments": {"latitude": 40.7128, "longitude": -74.006}}, {"name": "book_hotel", "arguments": {"hotel_name": "Hilton", "check_in": "2022-05-15", "check_out": "2022-05-20"}}, {"name": "search_books", "arguments": {"author": "George Orwell"}}]