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.
Required Methods§
fn predict_text( &mut self, transcript: &str, context: &[ConversationTurn], ) -> Result<TurnPrediction, TurnError>
fn reset(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".