Process message in state and decide whether to act on it.
Action to take on matching input.
Force matching on this branch regardless of other matched branches.
The result of branch matcher on input.
Status of match.
The thought process collection the branch should be applied.
Get the branch type, allows filtering processing.
Runs the matcher, then middleware and callback if matched.
Middleware can intercept and prevent the callback from executing.
If the state has already matched on prior branch, it will not match again
unless forced to, with the branch's force
property.
State containing message to process
Executes before the branch callback if matched
Called after middleware (optional), with match status
Determine if this branch should trigger the callback. Note that the method must be async, custom matcher will be promise wrapped. Abstract input has no enforced type, but resolved result MUST be truthy.
Generated using TypeDoc
Process message in state and decide whether to act on it.