feat(loop): add OutboundVoice result type for speak tool
This commit is contained in:
1 parent
07df06b86d
commit
281b27b496
2 files changed
+45
No files matched your search
@@ -85,6 +85,11 @@ type Result struct {
|
||||
// 用户消息的 document 列或随响应回传,使客户端能看到「这份附件读到了 /
|
||||
// 读不到」—— 没有它,抽取失败对客户端就是不可见的。
|
||||
Documents []history.DocumentRef
|
||||
// Voice 是本回合的**出站语音结论**:nil 表示本回合没有请求语音(纯文本);
|
||||
// Name 非空表示合成成功且音频副本已落盘;Requested 为真但 Name 为空、
|
||||
// FallbackReason 非空表示她请求了语音但降级为文本(如 tts_timeout)。
|
||||
// 字段语义详见 OutboundVoice。
|
||||
Voice *OutboundVoice
|
||||
// docSeen 是 Documents 的去重索引(存储名 → 下标),作用域限于本次
|
||||
// Result,绝不跨 Run 共享。
|
||||
docSeen map[string]int
|
||||
|
||||
Reference in new issue
Block a user