task environment in artificial intelligence