Working on an agentic AI system to identify patient cohorts