修复一些已知问题
This commit is contained in:
14
api/app/agents/chat/agent_turn.py
Normal file
14
api/app/agents/chat/agent_turn.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""一轮 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
|
||||
Reference in New Issue
Block a user