[Pipeline状态机]:完成全双工状态控制骨架,包含事件诊断、取消图和恢复协调测试

This commit is contained in:
mkbk
2026-06-18 21:49:57 +08:00
parent 8b3ffe0ef3
commit 0cfcb58584
7 changed files with 384 additions and 7 deletions
+3
View File
@@ -7,6 +7,7 @@ from typing import Any, Mapping
class PipelineState(str, Enum):
IDLE = "idle"
LISTENING = "listening"
WAKE_LISTENING = "wake_listening"
SPEECH_DETECTING = "speech_detecting"
RECORDING = "recording"
@@ -14,6 +15,8 @@ class PipelineState(str, Enum):
THINKING = "thinking"
SPEAKING = "speaking"
INTERRUPTED = "interrupted"
TOOL_RUNNING = "tool_running"
RECOVERING = "recovering"
ERROR_RECOVERING = "error_recovering"