Skip to content

workflow

workflow

Workflow dataclass

Workflow(
    *,
    label: str,
    marker: str,
    steps: list[Step],
    artifacts: list[Artifact[BaseModel]] = (lambda: [])(),
    post_complete: Callable[
        [BaseHookEvent], HookResult | None
    ]
    | None = None,
    on_start: Callable[[BaseHookEvent], HookResult | None]
    | None = None,
)
setup
setup(evt: BaseHookEvent) -> HookResult | None

Run the on_start callback when the workflow's subagent launches.