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": "yh_historical", "description": "Retrieves the historical data for a given stock ticker within specified date ranges.", "parameters": {"ticker": {"description": "The ticker symbol of the stock.", "type": "str", "default": ""}, "sdate": {"description": "The start date for retrieving historical data in YYYY-MM-DD format.", "type": "str", "default": ""}, "edate": {"description": "The end date for retrieving historical data in YYYY-MM-DD format.", "type": "str", "default": ""}}}, {"name": "earnings", "description": "This function retrieves the earnings information for a given company using the Yahoo Finance Complete API.", "parameters": {"symbol": {"description": "The stock ticker symbol of the company for which earnings information is to be retrieved.", "type": "str", "default": ""}}}, {"name": "gethistoricalscoresbyyear", "description": "Fetches historical Environmental, Social, Governance and Overall scores for companies based on the given year.", "parameters": {"year": {"description": "The year for which to fetch the historical scores (must be less than or equal to 2020).", "type": "str", "default": "2020"}, "content_type": {"description": "The type of content to return. Default is None.", "type": "str, optional", "default": ""}, "sedol": {"description": "The SEDOL identifier of the company. Default is None.", "type": "str, optional", "default": ""}, "isin": {"description": "The ISIN identifier of the company. Default is None.", "type": "str, optional", "default": ""}, "companyname": {"description": "The name of the company. Default is 'Apple Inc.'.", "type": "str, optional", "default": "Apple Inc."}}}]
Get historical data for Apple Inc. from the start of 2018 to the end of 2018. Also, retrieve the earnings details for Apple Inc.
user
assistant
[{"name": "yh_historical", "arguments": {"ticker": "AAPL", "sdate": "2018-01-01", "edate": "2018-12-31"}}, {"name": "earnings", "arguments": {"symbol": "AAPL"}}]