Skip to content

API Reference


API Reference / WorkflowStep

Interface: WorkflowStep<TContext> ​

Defined in: src/skills/Workflow.ts:8

Ad-hoc multi-step orchestration for callers who want a skill-shaped pipeline without declaring a Skill subclass.

Steps run in priority order (lower first, declaration order breaking ties) and thread one context through, same as a skill.

Type Parameters ​

TContext ​

TContext

Properties ​

name ​

name: string

Defined in: src/skills/Workflow.ts:9


priority ​

priority: number

Defined in: src/skills/Workflow.ts:10

Methods ​

run() ​

run(context): TContext | Promise<TContext>

Defined in: src/skills/Workflow.ts:11

Parameters ​

context ​

TContext

Returns ​

TContext | Promise<TContext>

Community project — not affiliated with Dhan. MIT License.