agentic diagnosis system