Spaces:
Building
Building
Update chat_session/state_orchestrator.py
Browse files
chat_session/state_orchestrator.py
CHANGED
@@ -327,6 +327,15 @@ class StateOrchestrator:
|
|
327 |
session_id = event.session_id
|
328 |
current_state = self.get_state(session_id)
|
329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
if current_state != ConversationState.PROCESSING_SPEECH:
|
331 |
log_warning(
|
332 |
f"⚠️ LLM response in unexpected state",
|
|
|
327 |
session_id = event.session_id
|
328 |
current_state = self.get_state(session_id)
|
329 |
|
330 |
+
# Debug için context'i direkt alalım
|
331 |
+
context = self.sessions.get(session_id)
|
332 |
+
if not context:
|
333 |
+
log_error(f"❌ No context for LLM response", session_id=session_id)
|
334 |
+
return
|
335 |
+
|
336 |
+
current_state = context.state
|
337 |
+
log_debug(f"🔍 LLM response handler - current state: {current_state.value}")
|
338 |
+
|
339 |
if current_state != ConversationState.PROCESSING_SPEECH:
|
340 |
log_warning(
|
341 |
f"⚠️ LLM response in unexpected state",
|