.choose(): a label, or a label plus what happens when it is picked.
Type Parameters
Union Members
string
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Type alias exported by @botmesh/core.
type ChooseOption<S> =
| string
| {
label: string;
then?: | FlowBuilder<object>
| CompiledFlow
| FlowAction<S>;
goto?: string | FlowBuilder<object>;
};
.choose(): a label, or a label plus what happens when it is picked.
| Type Parameter | Default type |
|---|---|
S extends object | EmptyFlowState |
string
{
label: string;
then?: | FlowBuilder<object>
| CompiledFlow
| FlowAction<S>;
goto?: string | FlowBuilder<object>;
}
| Name | Type | Description | Defined in |
|---|---|---|---|
label | string | - | flows/FlowBuilder.ts:174 |
then? | | FlowBuilder<object> | CompiledFlow | FlowAction<S> | Inline sub-flow (runs and RETURNS to the parent, sharing c.state) or an action. | flows/FlowBuilder.ts:176 |
goto? | string | FlowBuilder<object> | Leave this flow for another conversation (e.g. volver: { label: 'Volver', goto: menu }). | flows/FlowBuilder.ts:178 |