Artificial intelligence framework