File tree 1 file changed +7
-3
lines changed
src/elevenlabs/conversational_ai
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ class Conversation:
73
73
callback_user_transcript : Optional [Callable [[str ], None ]]
74
74
callback_latency_measurement : Optional [Callable [[int ], None ]]
75
75
76
- _thread : Optional [threading .Thread ] = None
76
+ _thread : Optional [threading .Thread ]
77
77
_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
80
80
81
81
def __init__ (
82
82
self ,
@@ -119,7 +119,11 @@ def __init__(
119
119
self .callback_agent_response_correction = callback_agent_response_correction
120
120
self .callback_user_transcript = callback_user_transcript
121
121
self .callback_latency_measurement = callback_latency_measurement
122
+
123
+ self ._thread = None
122
124
self ._should_stop = threading .Event ()
125
+ self ._conversation_id = None
126
+ self ._last_interrupt_id = 0
123
127
124
128
def start_session (self ):
125
129
"""Starts the conversation session.
You can’t perform that action at this time.
0 commit comments