You could call it cognition if you like, sure. "Cognition" is a fuzzy, stretchy, word. But, I feel confident that most people, after having the structure explained to them, would not be willing to stretch that word to cover ChatGPT or any of its friends.