.guard() does when its predicate fails. A string / dynamic text is a farewell message (the conversation ends).
Type Parameters
Union Members
string
DynamicText<S>
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 GuardFailure<S> =
| string
| DynamicText<S>
| {
message?: string | DynamicText<S>;
redirect?: string | FlowBuilder<object>;
};
.guard() does when its predicate fails. A string / dynamic text is a farewell message (the conversation ends).
| Type Parameter | Default type |
|---|---|
S extends object | EmptyFlowState |
string
DynamicText<S>
{
message?: string | DynamicText<S>;
redirect?: string | FlowBuilder<object>;
}
| Name | Type | Description | Defined in |
|---|---|---|---|
message? | string | DynamicText<S> | Message sent before ending (or before redirecting). | flows/FlowBuilder.ts:161 |
redirect? | string | FlowBuilder<object> | Jump to another conversation instead of ending (like c.goto(name)). | flows/FlowBuilder.ts:163 |