Appearance
Function: step()
ts
function step(label: string, run: (args: {
label: string;
}) =>
| ChatToolReturn
| Promise<ChatToolReturn>): PlanStep;Defined in: packages/sdk/src/renderer/templates/plan.ts:30
Build a PlanStep.
Parameters
| Parameter | Type | Description |
|---|---|---|
label | string | The step text shown in its editable row. |
run | (args: { label: string; }) => | ChatToolReturn | Promise<ChatToolReturn> | The action to run when the plan executes. |