File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/elevenlabs/conversational_ai Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ class Conversation:
7373 callback_user_transcript : Optional [Callable [[str ], None ]]
7474 callback_latency_measurement : Optional [Callable [[int ], None ]]
7575
76- _thread : Optional [threading .Thread ] = None
76+ _thread : Optional [threading .Thread ]
7777 _should_stop : threading .Event
78- _conversation_id : Optional [str ] = None
79- _last_interrupt_id : int = 0
78+ _conversation_id : Optional [str ]
79+ _last_interrupt_id : int
8080
8181 def __init__ (
8282 self ,
@@ -119,7 +119,11 @@ def __init__(
119119 self .callback_agent_response_correction = callback_agent_response_correction
120120 self .callback_user_transcript = callback_user_transcript
121121 self .callback_latency_measurement = callback_latency_measurement
122+
123+ self ._thread = None
122124 self ._should_stop = threading .Event ()
125+ self ._conversation_id = None
126+ self ._last_interrupt_id = 0
123127
124128 def start_session (self ):
125129 """Starts the conversation session.
You can’t perform that action at this time.
0 commit comments