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.
Function exported by @botmesh/core.
function flow<S>(trigger): FlowBuilder<S>;
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>