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": "last_menstrual_period_lmp", "description": "Calculates the estimated due date based on the user's last menstrual period (LMP).", "parameters": {"cycle_length": {"description": "The average length of the user's menstrual cycle in days.", "type": "str", "default": "28"}, "last_period_date": {"description": "The date of the user's last menstrual period in the format 'YYYY-MM-DD'.", "type": "str", "default": "2023-01-01"}}}, {"name": "triage_virtual", "description": "Determines if a patient should be attended via virtual consultation or in-person consultation based on their ID.", "parameters": {"is_id": {"description": "The unique identifier of the patient.", "type": "str", "default": "me duele la cabeza"}}}]
Calculate the estimated due date for a woman with a menstrual cycle length of 31 days and her last period date was on 2022-12-01. Also, determine if a patient with ID 'P89012' should be attended via virtual consultation or in-person consultation.
user
assistant
[{"name": "last_menstrual_period_lmp", "arguments": {"cycle_length": "31", "last_period_date": "2022-12-01"}}, {"name": "triage_virtual", "arguments": {"is_id": "P89012"}}]