Track conversation turns and events in your Pipecat pipeline
TurnTrackingObserver
monitors and tracks conversational turns in your Pipecat pipeline, providing events when turns start and end. It intelligently identifies when a user-bot interaction cycle begins and completes.
on_turn_started
: When a new turn begins
turn_number
(int)on_turn_ended
: When a turn completes
turn_number
(int), duration
(float, in seconds), was_interrupted
(bool)PipelineTask
with enable_turn_tracking=True
(which is the default):
PipelineTask
:
was_interrupted=True
)