test: anchor consult runtime prompt · openclaw/openclaw@a538e58
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -156,8 +156,20 @@ describe("realtime voice agent consult runtime", () => {
|
156 | 156 | expect(call.thinkLevel).toBe("high"); |
157 | 157 | expect(call.fastMode).toBe(true); |
158 | 158 | expect(call.timeoutMs).toBe(10_000); |
159 | | -expect(call.prompt).toContain("Caller: Can you check this?"); |
160 | | -expect(call.extraSystemPrompt).toContain("delegated requests"); |
| 159 | +expect(call.prompt).toBe( |
| 160 | +[ |
| 161 | +"Live voice request from the caller during a live phone call.", |
| 162 | +"Act as the configured OpenClaw agent on behalf of this user. Use available tools when the request asks you to do work.", |
| 163 | +"When finished, return only the concise result the realtime voice agent should speak back.", |
| 164 | +"Do not include markdown, tool logs, or private reasoning. Include citations only when the spoken answer needs them.", |
| 165 | +"Recent voice transcript for context:\nCaller: Can you check this?", |
| 166 | +"Additional realtime context:\nCaller asked about PR #123.", |
| 167 | +"User request:\nWhat should I say?", |
| 168 | +].join("\n\n"), |
| 169 | +); |
| 170 | +expect(call.extraSystemPrompt).toBe( |
| 171 | +"You are the configured OpenClaw agent receiving delegated requests from a live voice bridge. Act on behalf of the user, use available tools when appropriate, and return a brief speakable result.", |
| 172 | +); |
161 | 173 | }); |
162 | 174 | |
163 | 175 | it("scopes sandbox resolution to the configured consult agent", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。