Development and validation of an autonomous artificial intelligence agent for clinical decision-making in oncology