Repository navigation
feat(flow): decision node, regex matches operator and flow-wide error handler - #209
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
decisionnode: an ordered list of branches, each with a rule group. The first branch whose rules match wins; otherwise the flow goes todefault. The trace andflow_stepexitedgeis the branch id, ordefault.matchesrule operator. It tests a string variable against a regular expression;flags: "i"makes it case-insensitive. Patterns are limited to 500 characters and compiled with theuflag. An invalid pattern is a validation error (FLOW_INVALID_REGEX).onErrortarget. Onroute,http,mcpandllmnodes,onErroris now optional: a node without one sends its errors to the flow's handler. If neither is set, validation fails withFLOW_MISSING_ERROR_TARGET. A duplicate branch id fails withFLOW_DUPLICATE_BRANCH_ID.These changes are additive within flow
version: 1, so existing flows validate unchanged.Verified locally and via CI; no extra manual steps.