15 lines
396 B
Python
15 lines
396 B
Python
|
|
"""一轮 AI 对话输出:分段文案 + 是否整轮跳过 TTS(如失败兜底)。"""
|
|||
|
|
|
|||
|
|
from __future__ import annotations
|
|||
|
|
|
|||
|
|
from dataclasses import dataclass
|
|||
|
|
from typing import List
|
|||
|
|
|
|||
|
|
|
|||
|
|
@dataclass(frozen=True)
|
|||
|
|
class AgentChatTurn:
|
|||
|
|
"""与 WebSocket pipeline 对齐:messages 为气泡分段;skip_tts 为 True 时不合成语音。"""
|
|||
|
|
|
|||
|
|
messages: List[str]
|
|||
|
|
skip_tts: bool = False
|