S optionally declares state the flow expects up front; .ask(),
.choose() and .use() add the keys they capture, so c.state is typed without casts.
Type Parameters
Parameters
Returns
FlowBuilder<S>
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Variable exported by @botmesh/core.
const addKeyword: <S>(trigger) => FlowBuilder<S> = flow;
S optionally declares state the flow expects up front; .ask(),
.choose() and .use() add the keys they capture, so c.state is typed without casts.
| Type Parameter | Default type |
|---|---|
S extends object | EmptyFlowState |
| Parameter | Type |
|---|---|
trigger | Trigger |
FlowBuilder<S>