I don’t know if whatsmeow was intended for this use case: imagine a LLM performing multiple calls in a short period of time, could you risk to have your whatsapp account blocked by Meta?
WhatsApp will ban you if it detect any kind of automation, if you use this or an other wrapper you will -very luckily- get banned, even without making calls. They want you to use their paid business API
It saves the messages in a local SQLite database on load — so querying shouldn't be an issue as it doesn't contact the WhatsApp server. For sending, this does use the API however and needs more caution