AI contextual framework