You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "countries", "description": "List or search for countries of the world in different languages. This function allows filtering and specifying the fields to return for each country, such as ISO codes, currency details, and dial codes.", "parameters": {"currency": {"description": "Filter by the currency name in the chosen language.", "type": "str, optional", "default": ""}, "dial_code": {"description": "Filter by the country's dial code.", "type": "int, optional", "default": ""}, "currency_code": {"description": "Filter by the 3-letter currency code (ISO).", "type": "str, optional", "default": ""}, "fields": {"description": "Specify which fields to return for each country. Defaults to 'currency,currency_num_code,currency_code,continent_code,currency,iso_a3,dial_code'.", "type": "str, optional", "default": "currency,currency_num_code,currency_code,continent_code,currency,iso_a3,dial_code"}, "iso_a2": {"description": "Filter by the 2-letter ISO country code.", "type": "str, optional", "default": ""}, "name": {"description": "Search string for the country name, can be partial.", "type": "str, optional", "default": ""}, "limit": {"description": "Limit the number of results returned. Defaults to 250.", "type": "int, optional", "default": "250"}, "continent_code": {"description": "Filter by the 2-letter region/continent code (e.g., 'eu', 'na', 'sa', 'as', 'af', 'oc', 'an').", "type": "str, optional", "default": ""}, "iso_a3": {"description": "Filter by the 3-letter ISO country code.", "type": "str, optional", "default": ""}, "currency_num_code": {"description": "Filter by the 3-digit numeric currency code (ISO).", "type": "str, optional", "default": ""}, "lang": {"description": "Language selection ISO 639-1 code. Overrides the Accept-Language header. Defaults to 'en'.", "type": "str, optional", "default": ""}}}, {"name": "measure_distance", "description": "Calculates the distance between two geographic locations defined by their latitude and longitude coordinates.", "parameters": {"lon1": {"description": "Longitude of the first location.", "type": "int", "default": "36.6880794"}, "lon2": {"description": "Longitude of the second location.", "type": "int", "default": "39.2694784"}, "lat2": {"description": "Latitude of the second location.", "type": "int", "default": "-6.7785166"}, "lat1": {"description": "Latitude of the first location.", "type": "int", "default": "-3.3696827"}, "unit": {"description": "Unit of distance measurement. Valid options are 'km' (default), 'mi', 'ft', and 'yd'.", "type": "str, optional", "default": "km"}}}]
What is the distance in kilometers between Paris, France (latitude 48.8566, longitude 2.3522) and Tokyo, Japan (latitude 35.6895, longitude 139.6917)?
user
assistant
[{"name": "measure_distance", "arguments": {"lat1": 48.8566, "lon1": 2.3522, "lat2": 35.6895, "lon2": 139.6917, "unit": "km"}}]