Spaces:
Building
Building
Update websocket_manager.py
Browse files- websocket_manager.py +7 -0
websocket_manager.py
CHANGED
@@ -302,6 +302,13 @@ class WebSocketManager:
|
|
302 |
"message": "Conversation started successfully"
|
303 |
})
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
elif action == "start_session":
|
306 |
# Bu artık kullanılmamalı
|
307 |
log_warning(f"⚠️ Deprecated start_session action received | session_id={session_id}")
|
|
|
302 |
"message": "Conversation started successfully"
|
303 |
})
|
304 |
|
305 |
+
elif action == "stop_conversation":
|
306 |
+
await self.event_bus.publish(Event(
|
307 |
+
type=EventType.CONVERSATION_ENDED,
|
308 |
+
session_id=session_id,
|
309 |
+
data={"reason": "user_request"}
|
310 |
+
))
|
311 |
+
|
312 |
elif action == "start_session":
|
313 |
# Bu artık kullanılmamalı
|
314 |
log_warning(f"⚠️ Deprecated start_session action received | session_id={session_id}")
|