system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'map_service.get_directions', 'description': 'Retrieve directions from a starting location to an ending location, including options for route preferences. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'start': {'type': 'string', 'description': 'Starting location for the route.'}, 'end': {'type': 'string', 'description': 'Ending location for the route.'}, 'avoid': {'type': 'array', 'items': {'type': 'string', 'enum': ['tolls', 'highways', 'ferries']}, 'description': 'Route features to avoid. Default is none if not specified.'}}, 'required': ['start', 'end']}}, {'name': 'geometry.area_triangle', 'description': 'Calculate the area of a triangle. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'base': {'type': 'integer', 'description': 'The length of the base of the triangle.'}, 'height': {'type': 'integer', 'description': 'The height of the triangle from the base.'}, 'unit': {'type': 'string', 'description': 'The measurement unit for the area. Defaults to square meters.'}}, 'required': ['base', 'height']}}, {'name': 'science_history.get_invention', 'description': "Retrieve the inventor and year of invention based on the invention's name. Note that the provided function is in Python 3 syntax.", 'parameters': {'type': 'dict', 'properties': {'invention_name': {'type': 'string', 'description': 'The name of the invention.'}, 'want_year': {'type': 'boolean', 'default': False, 'description': 'Return the year of invention if set to true.'}}, 'required': ['invention_name', 'want_year']}}]


user: "Can you help me with a few things? First, I'm trying to calculate the area of a triangle that has a base of 12 meters and a height of 15 meters. I would like the result in square meters. Second, I'm curious about the inventor and year of invention of the 'Telephone'. Could you find that for me? Lastly, I'm planning a road trip and need directions from 'New York City' to 'Los Angeles'. I would like to avoid 'tolls' and 'highways'. Can you provide the best route for me?"

Available functions:
[{"name": "map_service.get_directions", "description": "Retrieve directions from a starting location to an ending location, including options for route preferences.", "parameters": {"type": "dict", "properties": {"start": {"type": "string", "description": "Starting location for the route."}, "end": {"type": "string", "description": "Ending location for the route."}, "avoid": {"type": "array", "items": {"type": "string", "enum": ["tolls", "highways", "ferries"]}, "description": "Route features to avoid. Default is none if not specified."}}, "required": ["start", "end"]}}, {"name": "geometry.area_triangle", "description": "Calculate the area of a triangle.", "parameters": {"type": "dict", "properties": {"base": {"type": "integer", "description": "The length of the base of the triangle."}, "height": {"type": "integer", "description": "The height of the triangle from the base."}, "unit": {"type": "string", "description": "The measurement unit for the area. Defaults to square meters."}}, "required": ["base", "height"]}}, {"name": "science_history.get_invention", "description": "Retrieve the inventor and year of invention based on the invention's name.", "parameters": {"type": "dict", "properties": {"invention_name": {"type": "string", "description": "The name of the invention."}, "want_year": {"type": "boolean", "default": false, "description": "Return the year of invention if set to true."}}, "required": ["invention_name", "want_year"]}}]

Ground-truth function call:
[{"geometry.area_triangle": {"base": [12], "height": [15], "unit": ["square meters", "m^2", ""]}}, {"science_history.get_invention": {"invention_name": ["Telephone", "Telephone"], "want_year": [true]}}, {"map_service.get_directions": {"start": ["New York City", "NYC"], "end": ["Los Angeles", "LA"], "avoid": [["tolls", "highways"], ["highways", "tolls"]]}}]