annotations
superduper.base.annotations
trigger
​
trigger(*event_types: Sequence[str],
depends: Union[Sequence[str],
str] = (),
requires: Union[Sequence[str],
str] = (),
outputs: str | None = None)
Parameter | Description |
---|---|
event_types | Event to trigger the method. |
depends | Triggers which should run before this method. |
requires | Dataclass parameters/ attributes which should be available to trigger the method |
outputs | Name of the attribute to store the output of the method. |
Decorator to trigger a method when an event is detected.