Wraps the existing acp + parse + switch pattern into a typed helper that scaffolds the JSON-with-reason prompt and validates the chosen value against the supplied choices tuple. decisionEdge() builds the matching switch edge with exhaustively-typed cases. Returns a plain AcpNodeDefinition so no schema, snapshot, or replay-viewer changes are required. Rewrites examples/flows/branch.flow.ts to use the helper. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| flows | ||