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": "piercing_line", "description": "Returns a list of stocks that have a Piercing Line signal from the BarPatterns API.", "parameters": {"page": {"description": "The page number for paginated results. Defaults to 1.", "type": "int", "default": "1"}}}, {"name": "earnings", "description": "Fetches the earnings data for a given company symbol using the Yahoo Finance API.", "parameters": {"symb": {"description": "The stock symbol representing the company whose earnings data is to be fetched.", "type": "str", "default": "tsla"}}}]
Retrieve earnings data for Apple Inc. (AAPL).
user
assistant
[{"name": "earnings", "arguments": {"symb": "AAPL"}}]