Both. It feels as though both could offer interesting perspectives on alien intelligence. Since there's so much we don't know, I assume many theories would be labeled as fiction to be proven otherwise.
Lem's His Master's Voice is also in the same genre, but the section A New Cosmology from A Perfect Vacuum is much more specifically about this topic.