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": "future_investment_value", "description": "Calculates the future value of an investment based on the present value, annual interest rate, and number of years.", "parameters": {"present_value": {"description": "The present value of the investment.", "type": "float"}, "annual_interest_rate": {"description": "The annual interest rate as a decimal (e.g., 0.05 for 5%).", "type": "float"}, "years": {"description": "The number of years the investment will grow.", "type": "int"}}}, {"name": "trapezoidal_integration", "description": "Calculates the definite integral of a function using the trapezoidal rule.", "parameters": {"func": {"description": "The function to integrate, expressed as a string (e.g., \"x**2 + 2*x\").", "type": "str", "default": 10000}, "a": {"description": "The lower limit of integration.", "type": "float", "default": 10000}, "b": {"description": "The upper limit of integration.", "type": "float"}, "n": {"description": "The number of subdivisions for the trapezoidal approximation. Defaults to 10000.", "type": "int, optional"}}}]
What will be the future value of an investment of $5000 at an annual interest rate of 4% after 10 years? Also, calculate the integral of the function 'x^3 - 2*x + 1' from 0 to 2 using the trapezoidal rule.
user
assistant
[{"name": "future_investment_value", "arguments": {"present_value": 5000, "annual_interest_rate": 0.04, "years": 10}}, {"name": "trapezoidal_integration", "arguments": {"func": "x**3 - 2*x + 1", "a": 0, "b": 2}}]