Synaptic.Voice.TurnAdmission behaviour (synaptic v0.3.0-alpha.9)
View SourceNormalizes application-owned decisions about whether a final transcript should resume a headless voice workflow or keep the current turn open.
A policy may be a one- or two-argument function, or a module exporting
decide/2. Policies return :commit, :keep_listening, or either action
paired with an application metadata map. The headless session evaluates the
policy asynchronously so network- or model-backed policies do not block the
session GenServer.