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 ¶
Run the on_start callback when the workflow's subagent launches.