


























@@ -33,6 +33,7 @@ describe("createBlockReplyDeliveryHandler", () => {
3333blockStreamingEnabled: false,
3434blockReplyPipeline: null,
3535 directlySentBlockKeys,
36+directlySentBlockTextFragments: [],
3637});
37383839await handler({
@@ -70,6 +71,7 @@ describe("createBlockReplyDeliveryHandler", () => {
7071blockStreamingEnabled: false,
7172blockReplyPipeline: null,
7273 directlySentBlockKeys,
74+directlySentBlockTextFragments: [],
7375});
74767577await handler({
@@ -106,6 +108,7 @@ describe("createBlockReplyDeliveryHandler", () => {
106108blockStreamingEnabled: false,
107109blockReplyPipeline: null,
108110 directlySentBlockKeys,
111+directlySentBlockTextFragments: [],
109112});
110113111114await handler({
@@ -149,6 +152,7 @@ describe("createBlockReplyDeliveryHandler", () => {
149152blockStreamingEnabled: false,
150153blockReplyPipeline: null,
151154 directlySentBlockKeys,
155+directlySentBlockTextFragments: [],
152156});
153157154158await handler({ presentation });
@@ -180,6 +184,7 @@ describe("createBlockReplyDeliveryHandler", () => {
180184blockStreamingEnabled: false,
181185blockReplyPipeline: null,
182186directlySentBlockKeys: new Set(),
187+directlySentBlockTextFragments: [],
183188});
184189185190await handler({ text: "text only" });
@@ -202,6 +207,7 @@ describe("createBlockReplyDeliveryHandler", () => {
202207blockStreamingEnabled: true,
203208 blockReplyPipeline,
204209directlySentBlockKeys: new Set(),
210+directlySentBlockTextFragments: [],
205211});
206212207213await handler({ text: "\n\n Hello from stream" });
@@ -234,6 +240,7 @@ describe("createBlockReplyDeliveryHandler", () => {
234240blockStreamingEnabled: true,
235241 blockReplyPipeline,
236242directlySentBlockKeys: new Set(),
243+directlySentBlockTextFragments: [],
237244});
238245239246await handler({ text: "reset intro" });
@@ -317,6 +324,7 @@ describe("createBlockReplyDeliveryHandler", () => {
317324blockStreamingEnabled: true,
318325 blockReplyPipeline,
319326directlySentBlockKeys: new Set(),
327+directlySentBlockTextFragments: [],
320328});
321329322330await handler({ text: "Result", mediaUrl: "./image.png" });
@@ -354,6 +362,7 @@ describe("createBlockReplyDeliveryHandler", () => {
354362blockStreamingEnabled: true,
355363 blockReplyPipeline,
356364directlySentBlockKeys: new Set(),
365+directlySentBlockTextFragments: [],
357366});
358367359368await handler({ text: "NO_REPLY", mediaUrls: ["./missing.png", "./survived.png"] });
@@ -385,6 +394,7 @@ describe("createBlockReplyDeliveryHandler", () => {
385394blockStreamingEnabled: true,
386395 blockReplyPipeline,
387396directlySentBlockKeys: new Set(),
397+directlySentBlockTextFragments: [],
388398});
389399390400const payload = setReplyPayloadMetadata({ text: "Alpha" }, { assistantMessageIndex: 7 });
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。