How do you account for the affect of AI?

The internet and pace of change in technology eroded and then destroyed a ton of businesses. My belief is that artificial intelligence will as well, I'm just not sure when that will happen and how long that will take. How do you account for the potential negative affect of AI on your portfolio companies, or in companies to invest in the future?