Files
life-echo/api/app/agents/chat/agent_turn.py
Kevin 064ad2161d refactor(eval+memoir):精简内部评测路由与服务,composite/对话摘要与 judge 能力补强
- 访谈:新增 interview_state_hints,联动 orchestrator 与提示词
- 回忆录:story_pipeline_sync/state/memory/post_commit 与 Celery 任务调整
- 基建:开发用 celery broker、compose/development 脚本、依赖注入
- eval-web:移除数据集/实验/版本等页面与流式轮询,突出 Playground
- 文档与单测同步
2026-04-08 21:36:12 +08:00

17 lines
513 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""一轮 AI 对话输出:分段文案 + 是否整轮跳过 TTS如失败兜底"""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, List
@dataclass(frozen=True)
class AgentChatTurn:
"""与 WebSocket pipeline 对齐messages 为气泡分段skip_tts 为 True 时不合成语音。"""
messages: List[str]
skip_tts: bool = False
memory_retrieval_trace: dict[str, Any] | None = None
interview_state_meta: dict[str, Any] | None = None