mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
Record validated FunASR, EdgeTTS, WebSocket and incomplete LLM results; fix provider benchmark false positives; add a bounded child dialogue service using existing LLM adapters and no-key mock tests.
18 lines
338 B
Python
18 lines
338 B
Python
"""Public result types for child dialogue."""
|
|
|
|
from dataclasses import dataclass
|
|
from enum import Enum
|
|
|
|
|
|
class ReplyStatus(str, Enum):
|
|
OK = "ok"
|
|
EMPTY_INPUT = "empty_input"
|
|
TIMEOUT = "timeout"
|
|
API_ERROR = "api_error"
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class DialogueReply:
|
|
session_id: str
|
|
text: str
|
|
status: ReplyStatus
|