pub trait TextTurnDetector: Send + Sync {
// Required methods
fn predict_text(
&mut self,
transcript: &str,
context: &[ConversationTurn],
) -> Result<TurnPrediction, TurnError>;
fn reset(&mut self);
}Expand description
Turn detector that operates on ASR transcript text.
Implementations receive the current (possibly partial) transcript and optionally prior conversation turns for context.