Hi, I'm building a custom turn detector. I have a ...
# agents
c
Hi, I'm building a custom turn detector. I have a context management issue in the case where the assistant is interrupted. I'd like to feed the assistant interrupted turn and the user interruption turn to the turn detector inside
predict_end_of_turn
The problem is that the assistant interrupted turn is added to the chat_ctx only after the turn detection completes. It's really confusing for the turn detector, because it only sees 2 consecutive user turns without the assistant's speech interrupted. What's the easiest way to add this missing turn as input of the turn detector (without messing the chat_ctx)?