agentic diagnostic engine