Do AI agents understand other minds?