qwen-audio-agent 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -10
- package/README_ZH.md +19 -10
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/cli/package.json +1 -1
- package/cli/src/arguments.mjs +4 -1
- package/cli/src/config-command.mjs +36 -6
- package/cli/src/gateway-service.mjs +7 -1
- package/cli/src/launcher.mjs +13 -0
- package/config/frontend-agent/LIVE_PROMPT.md +64 -0
- package/config/frontend-agent/PROMPT.md +29 -26
- package/desktop/src/i18n.mjs +6 -1
- package/desktop/src/settings-config.mjs +32 -40
- package/desktop/src/settings-store.mjs +19 -28
- package/docs/architecture/deep-dive.md +103 -66
- package/docs/architecture/deep-dive.zh.md +73 -50
- package/docs/backends/configuration.md +4 -4
- package/docs/backends/configuration.zh.md +4 -4
- package/docs/backends/overview.md +3 -0
- package/docs/backends/overview.zh.md +3 -0
- package/docs/configuration/backend.md +15 -1
- package/docs/configuration/backend.zh.md +15 -1
- package/docs/configuration/frontend.md +78 -28
- package/docs/configuration/frontend.zh.md +76 -28
- package/docs/configuration.md +1 -1
- package/docs/configuration.zh.md +1 -1
- package/docs/contract.md +24 -2
- package/docs/contract.zh.md +20 -2
- package/docs/extensions.md +14 -0
- package/docs/extensions.zh.md +11 -0
- package/docs/gateway-protocol.md +26 -0
- package/docs/gateway-protocol.zh.md +22 -0
- package/docs/gateway-webrtc-client.md +3 -3
- package/docs/gateway-webrtc-client.zh.md +3 -3
- package/docs/getting-started/install.md +4 -1
- package/docs/getting-started/install.zh.md +4 -1
- package/docs/getting-started/mobile.md +8 -2
- package/docs/getting-started/mobile.zh.md +5 -0
- package/docs/getting-started/quickstart.md +2 -2
- package/docs/getting-started/quickstart.zh.md +2 -2
- package/docs/getting-started/webui.md +2 -0
- package/docs/getting-started/webui.zh.md +2 -0
- package/docs/guides/knowledge.md +8 -5
- package/docs/guides/knowledge.zh.md +4 -3
- package/docs/guides/tasks.md +63 -2
- package/docs/guides/tasks.zh.md +45 -1
- package/docs/guides/web-search.md +32 -1
- package/docs/guides/web-search.zh.md +28 -1
- package/docs/operations/troubleshooting.md +30 -0
- package/docs/operations/troubleshooting.zh.md +26 -0
- package/docs/reference/backend-adapter-sdk.md +33 -2
- package/docs/reference/backend-adapter-sdk.zh.md +29 -2
- package/docs/reference/cli.md +3 -3
- package/docs/reference/cli.zh.md +3 -3
- package/docs/scenarios/lightrag.md +2 -2
- package/docs/scenarios/lightrag.zh.md +2 -2
- package/docs/scenarios/x-omni.md +5 -2
- package/docs/scenarios/x-omni.zh.md +5 -2
- package/docs/voice-agent-architecture-presentation.zh.md +34 -37
- package/docs/voice-frontends/custom-provider.md +22 -4
- package/docs/voice-frontends/custom-provider.zh.md +22 -4
- package/docs/voice-frontends/google-live.md +14 -8
- package/docs/voice-frontends/google-live.zh.md +13 -8
- package/docs/voice-frontends/gpt-live-1.md +149 -0
- package/docs/voice-frontends/gpt-live-1.zh.md +114 -0
- package/docs/voice-frontends/minicpm-o.md +8 -4
- package/docs/voice-frontends/minicpm-o.zh.md +7 -4
- package/docs/voice-frontends/{gpt-live.md → openai-realtime.md} +19 -10
- package/docs/voice-frontends/{gpt-live.zh.md → openai-realtime.zh.md} +18 -10
- package/docs/voice-frontends/qwen-audio-live.md +164 -0
- package/docs/voice-frontends/qwen-audio-live.zh.md +122 -0
- package/docs/voice-frontends/qwen-audio-realtime.md +41 -15
- package/docs/voice-frontends/qwen-audio-realtime.zh.md +34 -12
- package/docs/voice-frontends/qwen-omni-realtime.md +12 -9
- package/docs/voice-frontends/qwen-omni-realtime.zh.md +12 -9
- package/docs/voice-frontends/speech-to-speech.md +8 -4
- package/docs/voice-frontends/speech-to-speech.zh.md +7 -3
- package/docs/voice-frontends/stepfun.md +7 -4
- package/docs/voice-frontends/stepfun.zh.md +7 -4
- package/examples/webrtc/start.mjs +2 -1
- package/package.json +34 -16
- package/scripts/audit-dependencies.mjs +3 -25
- package/scripts/electron-smoke.mjs +5 -5
- package/scripts/patch-build-node-gyp.mjs +63 -0
- package/scripts/prepare-build.mjs +2 -0
- package/scripts/release-check +2 -2
- package/scripts/runtime/claude-code-acp.mjs +5 -5
- package/scripts/verify-package.mjs +3 -0
- package/server/package.json +5 -5
- package/server/src/app/gateway-application.mjs +3 -0
- package/server/src/app/gateway-http-routes.mjs +3 -0
- package/server/src/app/session-conversation-history.mjs +9 -1
- package/server/src/backend/adapters/a2a/backend-adapter.mjs +32 -26
- package/server/src/backend/adapters/acp/backend-adapter.mjs +703 -251
- package/server/src/backend/adapters/acp/coordinator-contract.mjs +2 -13
- package/server/src/backend/adapters/acp/coordinator-instructions.mjs +29 -8
- package/server/src/backend/adapters/acp/coordinator-queue.mjs +58 -0
- package/server/src/backend/adapters/acp/drivers/codex.mjs +1 -1
- package/server/src/backend/adapters/acp/drivers/openclaw.mjs +1 -2
- package/server/src/backend/adapters/acp/input-broker.mjs +2 -0
- package/server/src/backend/adapters/acp/process-client.mjs +111 -16
- package/server/src/backend/adapters/acp/session-configuration.mjs +2 -19
- package/server/src/backend/adapters/acp/session-registry.mjs +9 -0
- package/server/src/backend/adapters/acp/session-tools.mjs +1 -1
- package/server/src/backend/adapters/acp/turn-updates.mjs +188 -0
- package/server/src/backend/adapters/acp/work-continuation.mjs +48 -0
- package/server/src/backend/adapters/agent-client.mjs +24 -1
- package/server/src/backend/adapters/llm/backend-adapter.mjs +393 -0
- package/server/src/backend/adapters/muse/backend-adapter.mjs +2 -0
- package/server/src/backend/availability.mjs +12 -3
- package/server/src/backend/backend-adapter-sdk.mjs +3 -0
- package/server/src/backend/backend-port.mjs +13 -0
- package/server/src/backend/backend-work-runtime.mjs +23 -0
- package/server/src/client/client-command-runtime.mjs +14 -0
- package/server/src/conversation/conversation-sync.mjs +26 -2
- package/server/src/conversation/frontend-agent-context.mjs +18 -5
- package/server/src/conversation/frontend-notes.mjs +7 -5
- package/server/src/conversation/task-result-projector.mjs +1 -1
- package/server/src/core/backend-events.mjs +4 -0
- package/server/src/core/citation.mjs +8 -2
- package/server/src/core/config.mjs +46 -54
- package/server/src/core/gateway-protocol.mjs +4 -1
- package/server/src/core/request-security.mjs +7 -1
- package/server/src/core/work-conversation-context.mjs +138 -0
- package/server/src/core/work-input-request.mjs +1 -0
- package/server/src/frontend/frontend-tools.mjs +20 -7
- package/server/src/frontend/retrieval/providers/bing.mjs +23 -12
- package/server/src/frontend/retrieval/providers/factory.mjs +18 -1
- package/server/src/frontend/retrieval/providers/mcp.mjs +30 -11
- package/server/src/frontend/retrieval/providers/so360.mjs +23 -12
- package/server/src/frontend/tools/agent-task-runtime.mjs +119 -99
- package/server/src/frontend/tools/features/agent-task-tools.mjs +23 -42
- package/server/src/frontend/tools/frontend-tool-context.mjs +2 -2
- package/server/src/frontend/tools/spawn-thinking-tool.mjs +2 -2
- package/server/src/frontend/tools/tool-call-handler.mjs +166 -86
- package/server/src/knowledge/providers/local/library.mjs +26 -6
- package/server/src/knowledge/providers/local/provider.mjs +25 -6
- package/server/src/memory/providers/markdown/context-store.mjs +24 -11
- package/server/src/orchestration/session-task-coordinator.mjs +13 -3
- package/server/src/orchestration/task-operations.mjs +54 -12
- package/server/src/orchestration/task-updates.mjs +82 -0
- package/server/src/task/reminder-scheduler.mjs +5 -1
- package/server/src/task/task-manager.mjs +72 -15
- package/server/src/task/task-recovery.mjs +12 -2
- package/server/src/task/task-scheduler.mjs +5 -5
- package/server/src/task/task-state.mjs +13 -0
- package/server/src/transport/gateway-client-transport.mjs +35 -0
- package/server/src/transport/webrtc/protocol.mjs +1 -1
- package/server/src/voice/announcement/announcement-manager.mjs +3 -0
- package/server/src/voice/audio-stream-diagnostics.mjs +139 -0
- package/server/src/voice/native-delegation-runtime.mjs +360 -0
- package/server/src/voice/providers/dashscope-live.mjs +93 -0
- package/server/src/voice/providers/dashscope.mjs +45 -33
- package/server/src/voice/providers/doubao-seeduplex-protocol.mjs +54 -0
- package/server/src/voice/providers/doubao-seeduplex.mjs +16 -11
- package/server/src/voice/providers/ga-protocol.mjs +7 -2
- package/server/src/voice/providers/google-live-protocol.mjs +124 -34
- package/server/src/voice/providers/google-live.mjs +20 -14
- package/server/src/voice/providers/gpt-live-1-protocol.mjs +597 -0
- package/server/src/voice/providers/gpt-live-1.mjs +3 -0
- package/server/src/voice/providers/gpt-live-client-context.mjs +182 -0
- package/server/src/voice/providers/minicpm-o.mjs +9 -7
- package/server/src/voice/providers/openai-live.mjs +150 -0
- package/server/src/voice/providers/{gpt-live.mjs → openai-realtime.mjs} +23 -19
- package/server/src/voice/providers/provider-registry.mjs +11 -1
- package/server/src/voice/providers/qwen-live-protocol.mjs +399 -0
- package/server/src/voice/providers/registry.mjs +47 -12
- package/server/src/voice/providers/runtime-configuration.mjs +34 -0
- package/server/src/voice/providers/s2s.mjs +9 -7
- package/server/src/voice/providers/stepfun.mjs +14 -11
- package/server/src/voice/realtime-input-runtime.mjs +58 -20
- package/server/src/voice/realtime-presentation-runtime.mjs +111 -27
- package/server/src/voice/realtime-provider-session.mjs +59 -14
- package/server/src/voice/realtime-provider.mjs +358 -45
- package/server/src/voice/realtime-session-runtime.mjs +282 -35
- package/server/src/voice/realtime-task-presentation.mjs +8 -2
- package/server/src/voice/realtime-turn-state.mjs +33 -2
- package/shared/backend/catalog.mjs +26 -2
- package/shared/backend/install.mjs +3 -1
- package/shared/backend/setup.mjs +43 -0
- package/shared/gateway/client-sdk.mjs +21 -6
- package/shared/gateway/setup.mjs +13 -1
- package/shared/gateway/websocket-auth.mjs +2 -1
- package/shared/protocol/gateway-client-protocol.mjs +14 -0
- package/shared/protocol/gateway-events.mjs +39 -1
- package/shared/realtime-legacy-environment.mjs +81 -0
- package/shared/realtime-model-catalog.mjs +68 -194
- package/shared/realtime-models/README.md +33 -0
- package/shared/realtime-models/dashscope.mjs +57 -0
- package/shared/realtime-models/google.mjs +10 -0
- package/shared/realtime-models/openai.mjs +24 -0
- package/shared/realtime-models/profile.mjs +38 -0
- package/shared/realtime-models/stepfun.mjs +10 -0
- package/shared/realtime-models/volcengine.mjs +12 -0
- package/shared/realtime-provider-catalog.mjs +23 -11
- package/shared/realtime-provider-definitions.mjs +168 -235
- package/shared/runtime-environment.mjs +23 -30
- package/shared/skill-library.mjs +49 -13
- package/shared/web-search-configuration.mjs +25 -2
- package/tui/package.json +2 -2
- package/tui/src/index.mjs +14 -9
- package/tui/src/runtime-configuration.mjs +2 -0
- package/tui/src/terminal-commands.mjs +40 -0
- package/tui/src/text-cli.mjs +10 -1
- package/web/dist/assets/index-Bc2Q04J9.css +1 -0
- package/web/dist/assets/index-bY4DFXKT.js +96 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-BRaiI-dW.js +0 -91
- package/web/dist/assets/index-D9k8R2JY.css +0 -1
|
@@ -37,7 +37,7 @@ final ASR
|
|
|
37
37
|
Task accepted
|
|
38
38
|
│ response returns to Realtime immediately
|
|
39
39
|
▼
|
|
40
|
-
owner
|
|
40
|
+
bounded owner queue
|
|
41
41
|
│
|
|
42
42
|
▼
|
|
43
43
|
configured BackendPort
|
|
@@ -49,8 +49,12 @@ final ASR
|
|
|
49
49
|
Realtime naturally speaks the result
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
`spawn_thinking`
|
|
53
|
-
|
|
52
|
+
`spawn_thinking` 永不等待所请求的工作完成。后台执行期间用户仍可继续说话。
|
|
53
|
+
任务准入默认全局和每个 owner 各有一个活动名额,名额占用时后续请求排队。
|
|
54
|
+
直接执行中的任务在等待输入或权限时仍占用名额;ACP 协调轮次派出独立工作并结束后,
|
|
55
|
+
释放任务准入名额和协调 Session 租约,项目 Session 继续执行,其数量不受准入上限控制。
|
|
56
|
+
回答追问或定向调整继续作用于原任务,新工作不会隐式取消已有工作。
|
|
57
|
+
无论如何配置任务准入上限,ACP 都只使用一个协调 Session。
|
|
54
58
|
|
|
55
59
|
## 3. 实时边界
|
|
56
60
|
|
|
@@ -59,7 +63,7 @@ final ASR
|
|
|
59
63
|
|
|
60
64
|
| 契约 | 工具 |
|
|
61
65
|
| --- | --- |
|
|
62
|
-
| 核心契约 | `spawn_thinking`、`get_agent_task_status`、`cancel_agent_task`、`respond_permission`、`
|
|
66
|
+
| 核心契约 | `spawn_thinking`、`update_agent_task`、`get_agent_task_status`、`cancel_agent_task`、`respond_permission`、`get_current_time` |
|
|
63
67
|
| 可选能力 | `memory`、`web_search`、`fetch_url`、`knowledge`、`recall`、`notes`、`schedule_reminder`、`enter_sleep`;动态 MCP 工具同样随配置提供 |
|
|
64
68
|
|
|
65
69
|
固定的 `config/frontend-agent/PROMPT.md` 只可点名核心契约工具,维护对话、工作受理与结果、
|
|
@@ -72,13 +76,19 @@ Prompt 或核心工具中反向引用;可选工具之间也不写死对方的
|
|
|
72
76
|
|
|
73
77
|
核心与可选是提示词维护约定,不是运行时分类;核心工具名单仅保留在边界测试中。
|
|
74
78
|
注册表只保存工具定义和实际生效的可选策略,例如能力要求、结果大小限制和重复调用处理,
|
|
75
|
-
不要求工具声明分组或执行模式。未配置后台时不提供 `spawn_thinking
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
不要求工具声明分组或执行模式。未配置后台时不提供 `spawn_thinking` 和 `update_agent_task`,
|
|
80
|
+
`respond_permission` 仅在存在真实待确认权限时提供;即使属于核心契约,未提供的工具也不能调用。
|
|
81
|
+
测试检查固定 Prompt、工具引用和能力开关,防止新增可选能力重新耦合进核心规则。
|
|
78
82
|
|
|
79
83
|
当 Gateway 存在待确认的后台权限时,提供 `respond_permission`。
|
|
80
84
|
模型只回答权限请求;Gateway 负责查找请求及其关联 Task,再转发决定。
|
|
81
85
|
|
|
86
|
+
`update_agent_task` 把用户的指令交回已有工作;有待补充输入时,同一工具直接回答该请求,
|
|
87
|
+
可通过 `input_request_id` 绑定具体请求。确认、拒绝或修改要求都以自然语言写入 `instruction`,
|
|
88
|
+
由后台结合原上下文解释;Gateway 不按关键词分类,也不把缺省决定当作批准。
|
|
89
|
+
没有待补充输入时,能否调整工作取决于后台的 steering 能力。
|
|
90
|
+
终止整项工作使用 `cancel_agent_task`。客户端 Gateway 协议仍保留独立的 `task.input.respond` 命令。
|
|
91
|
+
|
|
82
92
|
`memory` 通过一个扁平接口维护两份普通 Markdown 文档。每次调用只执行一个
|
|
83
93
|
原子操作:`read`、`append` 或 `replace`;`replace` 使用唯一匹配的原文定位,
|
|
84
94
|
找不到或匹配多处时安全失败。同一轮可逐项调用多次,Gateway 合并后续回应。
|
|
@@ -136,13 +146,14 @@ PermissionPolicy 由语音、客户端命令和定时工作共用,以 BackendP
|
|
|
136
146
|
不能启用相应工具,也不会写入持久对话。
|
|
137
147
|
|
|
138
148
|
传递给 `spawn_thinking` 的 `objective` 是对用户请求的保守解释,而非执行计划。
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
149
|
+
提交前结合当前对话把"继续那个页面"之类的指代解析成自包含指令。该指令仍是执行依据,
|
|
150
|
+
ASR 原文不作为第二份任务描述附加。运行时可额外补充最多 2,000 字符的新增人机对话,
|
|
151
|
+
按协调 Session 跟踪已投递位置,避免后续轮次反复附加相同历史。对话仅供理解背景,
|
|
152
|
+
不构成新的执行要求;不复制工具调用、工具结果、后台原始输出、前台人格或长期记忆。
|
|
153
|
+
这一机制不增加前台工具。
|
|
143
154
|
|
|
144
155
|
一次后台轮次可以返回结果,也可以提出继续工作所需的问题、选择、确认或补充信息。
|
|
145
|
-
|
|
156
|
+
前台自然转达后者;用户随后回答时,通过 `update_agent_task` 交回同一工作 ID,
|
|
146
157
|
而不是在前台推测或模拟后续执行。这一语义不依赖具体问题内容或关键词。
|
|
147
158
|
|
|
148
159
|
当前轮附件由 Gateway 自动作为协议原生 Part 随任务传递,而不是放入模型可见的 JSON
|
|
@@ -151,30 +162,35 @@ Gateway 分配的会话内输入 ID。Task ID、owner、生命周期、时间戳
|
|
|
151
162
|
Gateway/BackendPort 的结构化数据,不进入后台 Agent 的任务指令。工作目录和用户
|
|
152
163
|
时区也不重复拼入每轮文本;协议或后台自身的运行上下文负责这些信息。
|
|
153
164
|
|
|
154
|
-
## 4.
|
|
165
|
+
## 4. 持久后端 Agent Session
|
|
155
166
|
|
|
156
167
|
这里的“协调 Session”属于 ACP 后台接入,不是框架的编排运行时。
|
|
157
168
|
编排运行时通过 `BackendPort` 管理工作,不要求 A2A 或自定义后台提供同样的 Session 结构。
|
|
158
169
|
|
|
159
|
-
ACP 适配器为每个 owner
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
ACP 适配器为每个 owner 和后端维护一个持久协调 Session。
|
|
171
|
+
请求、调整和结果整理共用 FIFO 队列,租约只覆盖协调轮次,不覆盖独立项目的执行时间。
|
|
172
|
+
Gateway 记录原生 ACP Session ID,在需要时恢复;项目 Session 的续接沿用记录的工作目录。
|
|
173
|
+
执行历史始终由后台管理。
|
|
174
|
+
|
|
175
|
+
调整根据已记录的执行目标投递,不选择碰巧空闲的 Session。独立工作的修改统一经过协调 Session,
|
|
176
|
+
由它通过 `session_send` 选择原项目 Session,再由适配器执行 steer 或续接。
|
|
177
|
+
只有目标投递成功才算送达,协调模型的口头答复不算。直接执行的工作在完成后,
|
|
178
|
+
原上下文可用时可以续接;已完成的框架 ACP 委派同样支持续接:Runtime 只转交不透明的后台上下文,
|
|
179
|
+
Adapter 恢复原协调 Session,并在任何副作用前验证项目绑定。ACP 私有 continuation 包含 `version: 1`、
|
|
180
|
+
原协调 Session 的 `token`,以及记录 `sessionId`、`directory`、`title` 的 `projects` 数组(直接工作为空数组)。
|
|
181
|
+
委派续接轮次只允许向原绑定项目调用 `session_send`,禁止 `session_start`,没有实际投递目标就不能算成功。
|
|
182
|
+
持久项目绑定与本轮执行分开记录,不重跑未修改的其他项目。缺少该版本化绑定的旧 ACP 上下文明确报错,
|
|
183
|
+
不猜测或迁移;没有可靠定向续接入口的原生委派不提供续接上下文。协调 Session 忙时排队,
|
|
184
|
+
不能把调整发给正在执行的另一项工作。
|
|
185
|
+
|
|
186
|
+
任务准入上限不会创建额外的协调 Session,也不限制独立项目 Session 的数量。
|
|
187
|
+
Session 分开并不隔离工作目录、文件或外部资源。
|
|
188
|
+
|
|
189
|
+
持久协调 Agent 负责分派执行并整理结果。对于目标明确独立、适合持续独立执行的工作,使用项目
|
|
190
|
+
Session;简短操作、澄清和结果整理留在协调 Session。相关后续要求继续指向原项目 Session,
|
|
191
|
+
不另建重复工作;用户无需明确要求单独的 Session。同一轮可以派出多项独立工作,随后结束
|
|
192
|
+
当前轮次,不等待、不轮询,也不在本地重复执行已委派的工作。不支持委派的后台直接执行请求。
|
|
193
|
+
后台收到自然语言指令、有界对话背景及原生附件,不需要输出任务状态 JSON。
|
|
178
194
|
|
|
179
195
|
## 5. Task 状态
|
|
180
196
|
|
|
@@ -236,18 +252,18 @@ Agent 请求次数耗尽分别进入 Gateway 的取消或失败路径。Gateway
|
|
|
236
252
|
Session 工具已经成功创建或续接目标任务,并返回 Adapter 验证过的运行与 Session
|
|
237
253
|
标识,而不是模型输出的某个字段。ACP 只负责如实传递工具调用、工具结果和当前回合的
|
|
238
254
|
终止;Adapter 将验证后的关联发布给 TaskManager,后者据此把原始 Task 移至
|
|
239
|
-
`delegated
|
|
240
|
-
|
|
255
|
+
`delegated`。协调轮次结束后释放协调 Session 租约,并在委派事件中声明让出任务准入名额。
|
|
256
|
+
TaskManager 释放名额但不会把任务标记为完成,因此后续请求可以进入同一协调 Session,
|
|
257
|
+
项目 Session 同时独立执行。其他 Adapter 不显式让出名额时,保留原有准入行为。
|
|
241
258
|
|
|
242
|
-
|
|
259
|
+
派出或续接成功后,协调 Agent 结束当前 ACP 回合,不等待委派工作完成;该文本不控制任务状态,也不会
|
|
243
260
|
被解释为完成信号。关联 ID、目标 Session 和生命周期完全保留在 Gateway 的 Task
|
|
244
261
|
Registry 与 Adapter 运行时中,不要求模型回显。
|
|
245
262
|
|
|
246
|
-
适配器独立地保持 Task
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
Session
|
|
250
|
-
都无法完成 Task。
|
|
263
|
+
适配器独立地保持 Task 生命周期和事件订阅存活。只有与已记录委派关联的 ACP 目标轮次
|
|
264
|
+
完成才能推进 Task;多个目标需要全部结束后统一处理。经验证的结果及原生 ContentBlock
|
|
265
|
+
重新进入同一个协调队列,整理一次最终答复。结果整理轮次不能再次派出或重启工作。
|
|
266
|
+
繁忙的目标、空结果、无关的 Session 更新或旧结果都无法完成 Task。
|
|
251
267
|
|
|
252
268
|
ACP Agent 轮次不设人为墙钟超时。初始协调轮次、委派目标轮次和最终整理轮次,
|
|
253
269
|
只会在 ACP 报告完成、用户显式取消 Task,或后端进程退出/关闭时结束。连接初始化
|
|
@@ -269,16 +285,23 @@ ACP Agent 轮次不设人为墙钟超时。初始协调轮次、委派目标轮
|
|
|
269
285
|
MiniMax Code 和 Kimi Code),Gateway 向协调器注入相同的五个工具:Session list、start、
|
|
270
286
|
send、status 和 cancel。OpenClaw ACP 不接受客户端提供的 MCP 服务器,
|
|
271
287
|
因此相同的协调契约映射到 OpenClaw 的原生 Session 工具。`session_start`
|
|
272
|
-
和 `session_send` 返回不透明的委派 ID
|
|
273
|
-
|
|
288
|
+
和 `session_send` 返回不透明的委派 ID。协调 Agent 可派出多个独立 Session,随后结束
|
|
289
|
+
当前轮次,不轮询、不重复执行,也不宣称完成;适配器负责等待、取消、权限路由和结果关联。
|
|
290
|
+
|
|
291
|
+
所有 ACP 协调 Session 统一在第 1、21、41……轮的 Prompt 前缀中注入完整稳定指令;
|
|
292
|
+
其他轮次只携带动态任务指令,不附加该前缀。已受理的逻辑轮次按 Session 计数并持久化,
|
|
293
|
+
重启后继续。执行、更新路由和结果整理均计数;内部工具迭代、同一轮的 steer 和重启不计数。
|
|
294
|
+
没有计数的旧 Session 在下一个受理轮次补充前缀。间隔 20 是全局内部常量,不新增用户配置;
|
|
295
|
+
刷新不重建 Session,也不变更契约版本。
|
|
296
|
+
|
|
297
|
+
公共规则与后台专属说明只有一个来源,由定期前缀和可选的 MCP 初始化响应 `instructions`
|
|
298
|
+
字段共用;不支持委派的后台省略项目路由规则。只有 Driver 声明 `coordinatorMcpInstructions`,
|
|
299
|
+
且内容不超过 2 KiB 可移植预算时,才发布 MCP instructions。目前为 OpenCode、Qoder、
|
|
300
|
+
Qwen Code、Claude Code 和 Codex 启用此能力。其他后台或超出预算的内容仍使用相同的
|
|
301
|
+
定期前缀,不回退到每轮注入完整规则。该标志不控制通用 MCP 支持或工具可用性。
|
|
302
|
+
项目及隔离 Session 保持不变,既不连接协调 MCP Server,也不接收这些刷新。
|
|
274
303
|
|
|
275
|
-
|
|
276
|
-
后台 Driver 只有在确认 Agent Host 会把 MCP Server instructions 投射进模型上下文后,
|
|
277
|
-
才声明 `coordinatorMcpInstructions`;这些后台每轮只接收动态自然任务指令,避免把
|
|
278
|
-
相同的路由与返回规则反复追加到持久 Session 历史。目前已确认 OpenCode、Qoder、Qwen Code
|
|
279
|
-
和 Claude Code,并将共享内容控制在 2 KiB 的可移植预算内。尚未验证的后台,或未来
|
|
280
|
-
超过预算的内容,继续使用完整的逐轮 Prompt 安全回退。该标志不表示后台是否普遍支持
|
|
281
|
-
MCP。项目 Session 不会连接协调 MCP Server。
|
|
304
|
+
这是定期提醒,不是后台上下文压缩检测,也不保证规则在压缩后仍然保留;尚未证实 Token 节省。
|
|
282
305
|
|
|
283
306
|
`session_status` 仅用于观察。如果查询失败,后端 Agent 必须报告失败;
|
|
284
307
|
不得使用原生工具检查目标目录或复制委派的工作。
|
|
@@ -442,4 +465,4 @@ macOS 桌面渲染器打包在应用程序内部。Electron 从私有的随机
|
|
|
442
465
|
5. 完成播报是否仅来自最终后端 Agent 结果?
|
|
443
466
|
6. UI 是否通过宿主生命周期接口管理本机 Gateway,且不绕过它直接管理后台进程?
|
|
444
467
|
7. 打断是否能在不取消已提交 Task 的情况下推迟语音?
|
|
445
|
-
8.
|
|
468
|
+
8. 测试是否覆盖有界并发、任务绑定 Session 的复用、工具动画和交付重试?
|
|
@@ -293,9 +293,9 @@ CODEX_BASE_URL=
|
|
|
293
293
|
## Claude Code
|
|
294
294
|
|
|
295
295
|
Claude Code connects via
|
|
296
|
-
[@
|
|
297
|
-
maintained
|
|
298
|
-
`claude-
|
|
296
|
+
[@agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp),
|
|
297
|
+
the maintained successor of Zed's deprecated `@zed-industries/claude-code-acp`. The launcher
|
|
298
|
+
script preferentially uses the already installed `claude-agent-acp`. If missing, the CLI can use the latest version via `npx`; the desktop app
|
|
299
299
|
offers “Install adapter” without reinstalling Claude Code. Claude Code must still be authenticated.
|
|
300
300
|
|
|
301
301
|
```dotenv
|
|
@@ -310,7 +310,7 @@ model via ACP. Advanced configuration:
|
|
|
310
310
|
|
|
311
311
|
```dotenv
|
|
312
312
|
CLAUDE_CODE_ACP_BIN=
|
|
313
|
-
CLAUDE_CODE_ACP_PACKAGE=@
|
|
313
|
+
CLAUDE_CODE_ACP_PACKAGE=@agentclientprotocol/claude-agent-acp@0.93.0
|
|
314
314
|
CLAUDE_CODE_ACP_RUNTIME=auto
|
|
315
315
|
CLAUDE_WORKSPACE=
|
|
316
316
|
CLAUDE_CODE_EXECUTABLE=
|
|
@@ -272,9 +272,9 @@ CODEX_BASE_URL=
|
|
|
272
272
|
|
|
273
273
|
## Claude Code
|
|
274
274
|
|
|
275
|
-
Claude Code 通过
|
|
276
|
-
[@
|
|
277
|
-
|
|
275
|
+
Claude Code 通过
|
|
276
|
+
[@agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp)
|
|
277
|
+
接入,它是 Zed 已弃用的 `@zed-industries/claude-code-acp` 的后继维护版本。启动脚本优先使用已安装的 `claude-agent-acp`;缺失时 CLI 可通过 `npx`
|
|
278
278
|
使用最新版本,桌面版提供“安装适配器”按钮,不重装已有的 Claude Code。
|
|
279
279
|
Claude Code 本体仍需完成认证。
|
|
280
280
|
|
|
@@ -289,7 +289,7 @@ QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=native
|
|
|
289
289
|
|
|
290
290
|
```dotenv
|
|
291
291
|
CLAUDE_CODE_ACP_BIN=
|
|
292
|
-
CLAUDE_CODE_ACP_PACKAGE=@
|
|
292
|
+
CLAUDE_CODE_ACP_PACKAGE=@agentclientprotocol/claude-agent-acp@0.93.0
|
|
293
293
|
CLAUDE_CODE_ACP_RUNTIME=auto
|
|
294
294
|
CLAUDE_WORKSPACE=
|
|
295
295
|
CLAUDE_CODE_EXECUTABLE=
|
|
@@ -7,6 +7,7 @@ The Backend Agent handles tasks that require tools, file operations, or sustaine
|
|
|
7
7
|
| Backend Agent | Integration Method | Setup Requirements | Skills | Recommendation |
|
|
8
8
|
| --- | --- | --- | --- | --- |
|
|
9
9
|
| None | N/A | Frontend-only mode, no configuration needed | — | ★★★★★ |
|
|
10
|
+
| Bare LLM | Built-in Chat Completions | OpenAI-compatible URL, API key, and model | None (text only) | Experimental |
|
|
10
11
|
| Qwen Code | Native ACP | Supports one-click install, requires user configuration | `~/.qwen/skills/` | ★★★★★ |
|
|
11
12
|
| OpenCode | Native ACP | Supports one-click install and Bailian configuration | `~/.config/opencode/skills/` | ★★★★★ |
|
|
12
13
|
| OpenClaw | Built-in ACP bridge | Supports one-click install and Bailian configuration | `~/.openclaw/skills/` | ★★★★★ |
|
|
@@ -87,6 +88,8 @@ ACP_ARGS=["--acp"]
|
|
|
87
88
|
|
|
88
89
|
The command, arguments, display name, and working directory can be configured via `ACP_COMMAND`, `ACP_ARGS`, `ACP_LABEL`, and `ACP_WORKSPACE` respectively. The generic ACP entry does not provide one-click install; please install it yourself.
|
|
89
90
|
|
|
91
|
+
For a lightweight LLM control, use `AGENT_PROTOCOL=llm`. Each Task makes one stateless text request without forwarding frontend business tools or conversation history. See [Bare LLM Backend](../configuration/backend.md#bare-llm-backend) for configuration and capability boundaries.
|
|
92
|
+
|
|
90
93
|
## Permission Modes
|
|
91
94
|
|
|
92
95
|
`QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE` can be set to:
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| 后台 Agent | 接入方式 | 接入准备 | Skills | 推荐指数 |
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
10
|
| 无 | N/A | 仅前台模式,无需配置 | — | ★★★★★ |
|
|
11
|
+
| 裸 LLM | 内置 Chat Completions | OpenAI-compatible URL、API Key 与模型 | 无(纯文本) | 实验性 |
|
|
11
12
|
| Qwen Code | 原生 ACP | 支持一键安装,需用户配置 | `~/.qwen/skills/` | ★★★★★ |
|
|
12
13
|
| OpenCode | 原生 ACP | 支持一键安装和百炼配置 | `~/.config/opencode/skills/` | ★★★★★ |
|
|
13
14
|
| OpenClaw | 内置 ACP 桥接 | 支持一键安装和百炼配置 | `~/.openclaw/skills/` | ★★★★★ |
|
|
@@ -94,6 +95,8 @@ ACP_ARGS=["--acp"]
|
|
|
94
95
|
命令、参数、显示名称和工作目录可分别通过 `ACP_COMMAND`、`ACP_ARGS`、
|
|
95
96
|
`ACP_LABEL` 和 `ACP_WORKSPACE` 配置。通用 ACP 入口不提供一键安装,请自行安装。
|
|
96
97
|
|
|
98
|
+
需要轻量 LLM 对照组时使用 `AGENT_PROTOCOL=llm`;每个 Task 为单次无状态文本调用,不继承前台业务工具或会话历史。配置方法与能力边界见[裸 LLM 后台](../configuration/backend.zh.md#裸-llm-后台)。
|
|
99
|
+
|
|
97
100
|
## 权限模式
|
|
98
101
|
|
|
99
102
|
`QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE` 可设为:
|
|
@@ -29,6 +29,20 @@ Complete authentication and model setup through the backend's own interface. Des
|
|
|
29
29
|
|
|
30
30
|
The generic `acp` entry has no installer. Set `ACP_COMMAND` and `ACP_ARGS` yourself. See [Backend-Specific Settings](../backends/configuration.md).
|
|
31
31
|
|
|
32
|
+
### Bare LLM Backend
|
|
33
|
+
|
|
34
|
+
Use the built-in `llm` backend to pair the voice frontend with an OpenAI-compatible text model. Each Task sends one stateless request containing only an optional system prompt and its current instruction. It does not forward tool schemas, conversation history, workspace, or Gateway metadata.
|
|
35
|
+
|
|
36
|
+
```dotenv
|
|
37
|
+
AGENT_PROTOCOL=llm
|
|
38
|
+
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-plus
|
|
39
|
+
QWEN_AUDIO_AGENT_LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
40
|
+
QWEN_AUDIO_AGENT_LLM_API_KEY=your-key
|
|
41
|
+
# QWEN_AUDIO_AGENT_LLM_SYSTEM_PROMPT=Answer the user's question directly.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
When the dedicated key is empty, the backend tries `DASHSCOPE_API_KEY` and then `OPENAI_API_KEY`. When the base URL is empty, it tries `OPENAI_BASE_URL`, then `DASHSCOPE_BASE_URL`, and finally selects the OpenAI or DashScope default from the available credential. The backend supports Task cancellation, but not function calling, permission requests, follow-up input, native workspace tools, or cross-Task history. It remains a lightweight LLM adapter rather than a full Agent replacement.
|
|
45
|
+
|
|
32
46
|
## Model Selection
|
|
33
47
|
|
|
34
48
|
For ACP backends supporting standard model configuration, when `QWEN_AUDIO_AGENT_BACKEND_MODEL` is empty:
|
|
@@ -40,7 +54,7 @@ An explicit value uses only standard ACP `configOptions` with `category: model`
|
|
|
40
54
|
|
|
41
55
|
DeepSeek also uses standard ACP model configuration; an empty setting preserves its ACP profile configuration. See [DeepSeek](../backends/configuration.md#deepseek).
|
|
42
56
|
|
|
43
|
-
Overrides apply to coordinator, new, and restored project Sessions. Non-ACP adapters implement their own declared capability; Muse Code uses MSP `modelId`,
|
|
57
|
+
Overrides apply to coordinator, new, and restored project Sessions. Non-ACP adapters implement their own declared capability; Muse Code uses MSP `modelId`, while the bare LLM passes the value directly as the Chat Completions `model`.
|
|
44
58
|
|
|
45
59
|
### Managed OpenCode / OpenClaw Setup
|
|
46
60
|
|
|
@@ -29,6 +29,20 @@ qwenaudio install qwen
|
|
|
29
29
|
|
|
30
30
|
通用 `acp` 入口不提供安装器,需自行设置 `ACP_COMMAND` 与 `ACP_ARGS`。后台独立参数见[各后台详细配置](../backends/configuration.zh.md)。
|
|
31
31
|
|
|
32
|
+
### 裸 LLM 后台
|
|
33
|
+
|
|
34
|
+
需要把语音前台与 OpenAI-compatible 文本模型组合时,可选择内置 `llm` 后台。每个 Task 仅携带可选 system prompt 与当前 Task instruction,发起一次无状态文本请求;不传递工具 schema、会话历史、工作区或 Gateway 元数据。
|
|
35
|
+
|
|
36
|
+
```dotenv
|
|
37
|
+
AGENT_PROTOCOL=llm
|
|
38
|
+
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-plus
|
|
39
|
+
QWEN_AUDIO_AGENT_LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
40
|
+
QWEN_AUDIO_AGENT_LLM_API_KEY=your-key
|
|
41
|
+
# QWEN_AUDIO_AGENT_LLM_SYSTEM_PROMPT=请直接回答用户的问题。
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
API Key 未单独填写时依次复用 `DASHSCOPE_API_KEY`、`OPENAI_API_KEY`;Base URL 未填写时复用 `OPENAI_BASE_URL`、`DASHSCOPE_BASE_URL`,最后按凭据选择 OpenAI 或 DashScope 默认地址。该后端支持 Task 取消,但不支持 function calling、权限请求、补充输入、后台原生工作区工具或跨 Task 历史;它仍是轻量 LLM Adapter,不等同于完整 Agent。
|
|
45
|
+
|
|
32
46
|
## 模型选择
|
|
33
47
|
|
|
34
48
|
对支持标准模型配置的 ACP 后台,`QWEN_AUDIO_AGENT_BACKEND_MODEL` 留空时:
|
|
@@ -40,7 +54,7 @@ qwenaudio install qwen
|
|
|
40
54
|
|
|
41
55
|
DeepSeek 同样通过标准 ACP 接口设置模型,留空时保留自身 ACP profile 配置,见 [DeepSeek](../backends/configuration.zh.md#deepseek)。
|
|
42
56
|
|
|
43
|
-
覆盖应用于协调、新建和恢复的项目 Session。非 ACP 适配器按自己的公开能力实现;例如 Muse Code 使用 MSP `modelId
|
|
57
|
+
覆盖应用于协调、新建和恢复的项目 Session。非 ACP 适配器按自己的公开能力实现;例如 Muse Code 使用 MSP `modelId`,裸 LLM 直接把该值作为 Chat Completions 的 `model`。
|
|
44
58
|
|
|
45
59
|
### OpenCode / OpenClaw 一键托管
|
|
46
60
|
|
|
@@ -2,62 +2,105 @@
|
|
|
2
2
|
|
|
3
3
|
The voice frontend handles realtime conversation; the backend Agent executes work. You can choose them independently.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Keep provider selection, credentials, endpoints, and the selected model in the `config.env` shown by `qwenaudio config`. Desktop's voice frontend settings edit these connection settings and select from the framework's supported models. Model definitions and adaptation parameters are maintained in code.
|
|
6
6
|
|
|
7
7
|
## Choose a Service
|
|
8
8
|
|
|
9
9
|
| Service | Provider value | Required configuration or preparation | Guide |
|
|
10
10
|
| --- | --- | --- | --- |
|
|
11
|
-
| Qwen Audio /
|
|
12
|
-
| StepAudio 3 | `stepfun` |
|
|
13
|
-
| OpenAI
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
| MiniCPM-o
|
|
11
|
+
| Qwen Audio / Audio Live / Omni | `dashscope` (default) | DashScope API key; Audio Live and Omni 3.8 also require a workspace-specific URL | [Audio Realtime](../voice-frontends/qwen-audio-realtime.md) / [Audio Live](../voice-frontends/qwen-audio-live.md) / [Omni vision](../voice-frontends/qwen-omni-realtime.md) |
|
|
12
|
+
| StepAudio 3 | `stepfun` | StepFun API key | [StepFun](../voice-frontends/stepfun.md) |
|
|
13
|
+
| OpenAI | `openai` | OpenAI API key | [GPT Realtime](../voice-frontends/openai-realtime.md) / [GPT Live](../voice-frontends/gpt-live-1.md) |
|
|
14
|
+
| Google | `google` | Google API key | [Gemini Live](../voice-frontends/google-live.md) |
|
|
15
|
+
| Volcengine | `volcengine` | Volcengine Speech API key | Doubao Seeduplex model, voice, and endpoint below |
|
|
16
|
+
| speech-to-speech service | `speech-to-speech` | Start the service; default: `ws://127.0.0.1:8765/v1/realtime` | [Self-hosted model pipeline](../voice-frontends/speech-to-speech.md) |
|
|
17
|
+
| ModelBest / MiniCPM-o service | `minicpm-o` | Start the service or obtain a compatible endpoint; local default: `ws://127.0.0.1:8006/v1/realtime?mode=audio` | [Audio/video modes and limits](../voice-frontends/minicpm-o.md) |
|
|
18
18
|
|
|
19
19
|
For the default frontend:
|
|
20
20
|
|
|
21
21
|
```dotenv
|
|
22
22
|
QWEN_AUDIO_REALTIME_PROVIDER=dashscope
|
|
23
|
-
|
|
24
|
-
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.
|
|
23
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-key
|
|
24
|
+
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
|
|
25
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
26
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
To switch to StepFun, select it and supply its own credentials:
|
|
28
30
|
|
|
29
31
|
```dotenv
|
|
30
32
|
QWEN_AUDIO_REALTIME_PROVIDER=stepfun
|
|
31
|
-
|
|
33
|
+
QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
|
|
34
|
+
QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
|
|
35
|
+
QWEN_AUDIO_REALTIME_URL=
|
|
36
|
+
QWEN_AUDIO_REALTIME_VOICE=
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
All frontends use the same five fields. They describe one active connection, not a collection of saved provider profiles. When switching providers, replace the key and model, and clear or replace the URL and voice. Frontend credentials are separate from backend, search, and memory-service credentials.
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
**Provider identifies the supplier or service; model selection depends on what that service exposes.** For OpenAI, choose `openai`, then `gpt-realtime-2.1` or `gpt-live-1`. The framework selects the matching protocol adapter from the model definition. Adapter selection is internal: it is neither a third user setting nor inferred from the model name. For speech-to-speech and MiniCPM-o, models are managed by the upstream service, so the Gateway does not offer a model selector.
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
43
|
+
## Connection Fields
|
|
44
|
+
|
|
45
|
+
| Field | Meaning |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| `QWEN_AUDIO_REALTIME_PROVIDER` | Service to connect to; defaults to `dashscope` |
|
|
48
|
+
| `QWEN_AUDIO_REALTIME_MODEL` | Model ID; empty uses the provider default |
|
|
49
|
+
| `QWEN_AUDIO_REALTIME_API_KEY` | Credential for the selected service |
|
|
50
|
+
| `QWEN_AUDIO_REALTIME_URL` | WebSocket endpoint; empty uses the selected model's or provider's default |
|
|
51
|
+
| `QWEN_AUDIO_REALTIME_VOICE` | Voice override; empty uses the model or service default |
|
|
52
|
+
|
|
53
|
+
Provider defaults:
|
|
47
54
|
|
|
48
|
-
|
|
55
|
+
| Provider | Default model | Default endpoint |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| `dashscope` | `qwen-audio-3.1-realtime-plus` | `wss://dashscope.aliyuncs.com/api-ws/v1/realtime` |
|
|
58
|
+
| `stepfun` | `stepaudio-3-realtime-preview` | `wss://api.stepfun.com/v1/realtime` |
|
|
59
|
+
| `openai` | `gpt-realtime-2.1` | `wss://api.openai.com/v1/realtime` |
|
|
60
|
+
| `google` | `gemini-3.8-live` | `wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent` |
|
|
61
|
+
| `volcengine` | `1.2.6.1` | `wss://openspeech.bytedance.com/api/v3/duplex/realtime/dialogue` |
|
|
62
|
+
| `speech-to-speech` | Set upstream | `ws://127.0.0.1:8765/v1/realtime` |
|
|
63
|
+
| `minicpm-o` | Set upstream | `ws://127.0.0.1:8006/v1/realtime?mode=audio` |
|
|
64
|
+
|
|
65
|
+
With `openai`, selecting `gpt-live-1` instead uses `wss://api.openai.com/v1/live/sessions` by default. Desktop keeps the API key when switching models within the same provider and clears URL/voice overrides when the protocol adapter changes; `qwenaudio config set --realtime-model` applies the same cross-protocol reset. If editing the configuration file directly, clear or replace those overrides yourself.
|
|
66
|
+
|
|
67
|
+
For speech-to-speech and MiniCPM-o, leave model and voice empty: the upstream service controls them. Set the API key only if that service requires a Bearer token. Qwen3.8 Omni requires an explicit [workspace-specific URL](../voice-frontends/qwen-omni-realtime.md#setup), not the public DashScope default. [Qwen Audio Live](../voice-frontends/qwen-audio-live.md#configuration) also uses a workspace endpoint, with the `/live` path. Uniform configuration does not change each service's protocol or capability limits; the Provider adapter handles those differences.
|
|
68
|
+
|
|
69
|
+
GPT Live and Qwen Audio Live use Client delegation to the configured backend Agent. These integrations do not register frontend function tools or accept spoken permission approval. See the [GPT Live](../voice-frontends/gpt-live-1.md#configuration) and [Qwen Audio Live](../voice-frontends/qwen-audio-live.md#configuration) guides for setup and client-based task controls.
|
|
49
70
|
|
|
50
71
|
Current built-in DashScope model profiles:
|
|
51
72
|
|
|
52
73
|
| Model ID | Realtime input |
|
|
53
74
|
| --- | --- |
|
|
54
|
-
| `qwen-audio-3.
|
|
75
|
+
| `qwen-audio-3.1-realtime-plus` (default) | Text, audio |
|
|
76
|
+
| `qwen-audio-3.1-realtime-flash` | Text, audio |
|
|
77
|
+
| `qwen-audio-3.1-live` | Text, full-duplex audio; native Client delegation |
|
|
78
|
+
| `qwen-audio-3.0-realtime-plus` | Text, audio |
|
|
55
79
|
| `qwen-audio-3.0-realtime-flash` | Text, audio |
|
|
56
80
|
| `qwen3.5-omni-flash-realtime` | Text, audio, live visual frames |
|
|
57
81
|
| `qwen3.5-omni-plus-realtime` | Text, audio, live visual frames |
|
|
58
82
|
| `qwen3.8-omni-flash-realtime` | Text, audio, live visual frames |
|
|
59
83
|
|
|
60
|
-
|
|
84
|
+
The Realtime profiles support frontend tool calls; the Live profile uses native Client delegation instead. Live vision also requires client and transport support; see [Visual Input](../guides/vision.md).
|
|
85
|
+
|
|
86
|
+
Audio 3.1 Plus / Flash use the existing `dashscope` provider and default to
|
|
87
|
+
`longanqian_v3.1`; Audio 3.0 Plus / Flash keep `longanqian`. An explicit
|
|
88
|
+
`QWEN_AUDIO_REALTIME_VOICE` must match the selected model. Audio models do not
|
|
89
|
+
support visual input. See the [Audio guide](../voice-frontends/qwen-audio-realtime.md)
|
|
90
|
+
for model switching and workspace endpoint overrides.
|
|
91
|
+
|
|
92
|
+
The Audio Live profile instead uses the official duplex configuration and
|
|
93
|
+
defaults to `yunshu`. Its service ID remains `qwen-audio-3.1-live`; the internal
|
|
94
|
+
session model is 4.0 Realtime Preview. See the [Live guide](../voice-frontends/qwen-audio-live.md#configuration)
|
|
95
|
+
before reusing a Realtime endpoint or voice.
|
|
96
|
+
|
|
97
|
+
## Select a Supported Model
|
|
98
|
+
|
|
99
|
+
The model list is maintained by the framework. Desktop and `qwenaudio config show` use this same list; choose a model for the selected provider in Desktop or set `QWEN_AUDIO_REALTIME_MODEL`. Leave it empty to use the provider default. For example, with `dashscope` selected, use `qwen-audio-3.1-realtime-flash` to switch to the built-in 3.1 Flash model. The default remains 3.1 Plus.
|
|
100
|
+
|
|
101
|
+
An unsupported model ID is a configuration error. User configuration cannot add models, redefine existing models, or change their API bindings, capabilities, turn detection, or integration constraints. These are fixed by the framework's model support. The existing `QWEN_AUDIO_REALTIME_VOICE` and session-scoped voice overrides still work; choose a voice compatible with the selected model.
|
|
102
|
+
|
|
103
|
+
The list describes implemented support, not live service availability or account authorization. Check the account, region, endpoint, and voice for your chosen model, then apply and verify the connection below. Models behind speech-to-speech and MiniCPM-o remain configured in those external services.
|
|
61
104
|
|
|
62
105
|
## Apply and Verify
|
|
63
106
|
|
|
@@ -65,11 +108,11 @@ All profiles support tool calls. Live vision also requires client and transport
|
|
|
65
108
|
2. Connect a client and check that the voice frontend is connected.
|
|
66
109
|
3. Speak and confirm that audio plays. If you need tools, also test search or a simple backend request.
|
|
67
110
|
|
|
68
|
-
To inspect the configured provider and supported
|
|
111
|
+
To inspect the configured provider and supported model list:
|
|
69
112
|
|
|
70
113
|
```bash
|
|
71
114
|
qwenaudio config show
|
|
72
|
-
qwenaudio config set --realtime-model qwen-audio-3.
|
|
115
|
+
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
|
|
73
116
|
```
|
|
74
117
|
|
|
75
118
|
`config set` changes the current provider's model; it neither switches providers nor restarts the Gateway. Remote clients use the remote Gateway's settings, not local model settings.
|
|
@@ -79,10 +122,17 @@ qwenaudio config set --realtime-model qwen-audio-3.0-realtime-flash
|
|
|
79
122
|
- **MiniCPM-o:** the current adapter does not support text input, structured tool calls, proactive replies, or conversation context restoration. It supports voice/visual chat, not backend orchestration.
|
|
80
123
|
- **speech-to-speech:** recognition languages, voices, and tool-call quality depend on the STT, LLM, and TTS you configure.
|
|
81
124
|
- **Google Live:** the current adapter does not restore conversation context into a reconnected upstream session. Visible chat history does not mean the model received that history.
|
|
125
|
+
- **Qwen Audio Live / GPT Live:** both reuse Gateway tasks, but their native input and result protocols differ. See their guides; a shared `Live` name does not imply identical API behavior.
|
|
82
126
|
- Other supported features and limits are documented in the service-specific guides.
|
|
83
127
|
|
|
84
128
|
Configure frontend tools separately: [Search](../guides/web-search.md), [MCP](../reference/frontend-mcp.md), [OpenAPI](../reference/frontend-openapi.md).
|
|
85
129
|
|
|
86
130
|
## Older Configuration
|
|
87
131
|
|
|
88
|
-
|
|
132
|
+
Older OpenAI provider values remain readable: `gpt-live`, `openai-realtime`, `gptlive`, and `gpt-realtime` retain the Realtime default; `gpt-live-1`, `openai-live`, and `gptlive1` retain the Live default. Saving through the configuration settings normalizes them to `openai` with the corresponding model. In particular, the old `gpt-live` value does not switch to the Live API.
|
|
133
|
+
|
|
134
|
+
The older `google-live` and `doubao-seeduplex` provider values also remain readable and save as `google` and `volcengine`. Their model IDs, credentials, and API behavior are unchanged; `google-live` and `doubao-seeduplex` now identify the internal protocol adapters.
|
|
135
|
+
|
|
136
|
+
Provider-specific frontend variables are read only for compatibility. The five unified fields take precedence, including explicitly empty values. If an older file contains both unified model/voice fields and another provider's model/voice fields, put the selected provider's intended values in the unified fields. For Omni, move an existing `QWEN_OMNI_REALTIME_VOICE` value to `QWEN_AUDIO_REALTIME_VOICE`.
|
|
137
|
+
|
|
138
|
+
Only the active connection is saved; separate provider drafts are no longer persisted. Old variables are not automatically deleted because a backend Agent, search, or another module may still use them. Remove obsolete frontend-only overrides yourself after migration. See [configuration priority](../configuration.md#configuration-priority).
|