Workflow

Workflow(*, label: ‘str’, marker: ‘str’, steps: ‘list[Step]’, artifacts: ‘list[Artifact[BaseModel]]’ = , post_complete: ‘Callable[[BaseHookEvent], HookResult | None] | None’ = None, on_start: ‘Callable[[BaseHookEvent], HookResult | None] | None’ = None)

Usage

Source

Workflow()

Parameter Attributes

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

Methods

Name Description
setup() Run the on_start callback when the workflow’s subagent launches.

setup()

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

Usage

Source

setup(evt)