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": "ema", "description": "Fetch the Exponential Moving Average (EMA) for a given financial instrument.", "parameters": {"symbol": {"description": "The financial instrument's symbol. Examples include 'AAPL' for Apple Inc., 'EUR/USD' for Euro to US Dollar, 'ETH/BTC' for Ethereum to Bitcoin, etc.", "type": "str", "default": "AAPL"}, "interval": {"description": "The time interval between successive data points. Supported intervals include '1min', '5min', '15min', '30min', '45min', '1h', '2h', '4h', '1day', '1week', and '1month'.", "type": "str", "default": "1min"}, "series_type": {"description": "The type of series to use in the calculations. Supported values are 'open', 'high', 'low', and 'close'. Defaults to 'close'.", "type": "str, optional", "default": "close"}, "format": {"description": "The format of the response data. Supported values are 'JSON' and 'CSV'. Defaults to 'JSON'.", "type": "str, optional", "default": "json"}, "outputsize": {"description": "The number of data points to return. Defaults to 30 when no date parameter is set, otherwise is set to the maximum available.", "type": "int, optional", "default": 30}, "time_period": {"description": "The number of periods to use in the calculation of the EMA. Defaults to 9.", "type": "int, optional", "default": 9}}}]
I need the EMA for Apple stocks with 1-day intervals, and also for Tesla stocks with 1-hour intervals. Can you provide the results in JSON format for both?
user
assistant
[{"name": "ema", "arguments": {"symbol": "AAPL", "interval": "1day", "format": "json"}}, {"name": "ema", "arguments": {"symbol": "TSLA", "interval": "1h", "format": "json"}}]