Adding the current venv to the command prompt

I am using Starship and zsh on my Mac. I am looking for a way to be able to add the current venv to the prompt when I have one activated or, in the case of poetry, when I am in a folder where poetry activates one.

I am still new to the idea of venvs and working in them and I thought that a command prompt addition would make it easier for me to know when I was in one.

I am not wedded to poetry or Starship at the moment so feel free to suggest alternatives if there are any.

TIA

Does this not automatically happen when you activate the venv? This has always worked for me transparently on both Windows and Linux. E.g.:

me@machine:~/path/to/somewhere$ source .venv/bin/activate
(.venv) me@machine:~/path/to/somewhere$

Not since I have installed poetry. Let me see what happens if I manually activate it