Did any ancient authors (Roman, Greek, etc) think fetuses had cognitive functions or agency?

by florpi

To clarify: I'm interested specifically in what ancient sources thought the child-in-the-womb might be experiencing, if anything, or what agency was ascribed to it, if any. These days it is assumed that later in the pregnancy fetuses can 'hear' garbled sounds from outside, for example, and there are common references to "the baby wants X!" when a woman experiences certain cravings while pregnant.

I've gone over Pliny the Elder and his references to pregnancy don't seem to cover this. I'm sure it might also be the case that "we don't have sources on that".

Thank you, I appreciate any insight into this!

AreYouNotShpongled

As a follow up, how detailed was general medical knowledge at the time regarding the phases of development of a fetus? Was there any speculation about the relationship between brain structure and human cognition, in particular as concerns the parallel development of both prenatally?