If your action needs to throw an annotation under certain conditions, use the utility below.
from pyaction.workflow import annotations as A
...
@workflow.action
def my_action(name: str, home_town: str) -> None:
A.error("This is an error annotation!")
A.warning("This is a warning annotation!")
A.notice("This is a notice annotation!")