AttractorEx.HumanGate (attractor_phoenix v0.1.0)

Copy Markdown View Source

Helper functions for building and matching wait.human choices.

This module converts outgoing edges into normalized selectable options and performs tolerant matching against keys, labels, and destination node IDs.

Summary

Functions

Builds the available choices for a human-gate node from its outgoing edges.

Finds the first matching choice for a human answer token.

Normalizes answer tokens for case-insensitive matching.

Functions

choices_for(node_id, graph)

Builds the available choices for a human-gate node from its outgoing edges.

match_choice(value, choices)

Finds the first matching choice for a human answer token.

normalize_token(value)

Normalizes answer tokens for case-insensitive matching.