




















@@ -1316,17 +1316,16 @@ describe("sessions tools", () => {
13161316delivery: { status: "skipped", mode: "announce" },
13171317});
13181318expect(calls.filter((call) => call.method === "agent")).toHaveLength(1);
1319-expect(
1320-calls.some(
1321-(call) =>
1322-call.method === "agent" &&
1323-typeof (call.params as { extraSystemPrompt?: string })?.extraSystemPrompt === "string" &&
1324-(call.params as { extraSystemPrompt?: string }).extraSystemPrompt?.includes(
1325-"Agent-to-agent reply step",
1326-),
1327-),
1328-).toBe(false);
1329-expect(calls.some((call) => call.method === "send")).toBe(false);
1319+const replyPromptAgentCalls = calls.filter(
1320+(call) =>
1321+call.method === "agent" &&
1322+typeof (call.params as { extraSystemPrompt?: string })?.extraSystemPrompt === "string" &&
1323+(call.params as { extraSystemPrompt?: string }).extraSystemPrompt?.includes(
1324+"Agent-to-agent reply step",
1325+),
1326+);
1327+expect(replyPromptAgentCalls).toEqual([]);
1328+expect(calls.filter((call) => call.method === "send")).toEqual([]);
13301329});
1331133013321331it("sessions_send preserves threadId when announce target is hydrated via sessions.list", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。