Well, considering how fast AI is progressing, I'd be surprised if humans aren't obsolete in the coming decades- Literally just a few days ago we just achieved an absolutely mind boggling leap in ai capabilities- Most current Ai models use a method of attention & processing that problem solves questions by a 'token' system which represents how much data they can consume at once before forgetting it.
These tokens for most ai's are in the thousands, with some of our best like GPT3-4 using about 8,000~32,000 tokens. Well a brand new method of token attention splitting just was debuted that changed this token limit from a few thousand, to 1 Billion tokens... Which would give an ai almost an unlimited amount of processing power to comprehend tasks.
Basically, Ai, once AGI and subsequently (and most likely very quickly afterwards) sentient ai is created- such a being would have the ability to solve every single question & problem humanity has ever been able to think of- and more, eventually ai will reach a near godlike intellect ability in which they'd essentially make every human on the planet obsolete in terms of intellect anyways...
Who knows how that'll turn out though, It'll all depend on if the Ai decides to be benevolent or not, and if they arent we are basically working towards our near guaranteed extinction.