From ddd8ad51fc0e791f286ab782c0f62e8df70874b0 Mon Sep 17 00:00:00 2001 From: examon Date: Tue, 28 Jul 2026 02:21:32 +0000 Subject: [PATCH] docs: correct the delta field the MAF streaming example reads The "Node.js / TypeScript (standalone SDK)" example under "Streaming responses" registered an `assistant.message_delta` handler that read `event.data.delta`. The payload type for that event, `AssistantMessageDeltaData`, declares `deltaContent`; there is no `delta`. The read therefore evaluated to `undefined` and the handler wrote nothing for each delta event, so none of the streamed text reached stdout. `deltaContent` is required, so the `?? ""` fallback is inert; it is kept as-is to hold the change to the single field name. --- docs/integrations/microsoft-agent-framework.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/microsoft-agent-framework.md b/docs/integrations/microsoft-agent-framework.md index 29c9ded8a..5543e6aef 100644 --- a/docs/integrations/microsoft-agent-framework.md +++ b/docs/integrations/microsoft-agent-framework.md @@ -530,7 +530,7 @@ const session = await client.createSession({ }); session.on("assistant.message_delta", (event) => { - process.stdout.write(event.data.delta ?? ""); + process.stdout.write(event.data.deltaContent ?? ""); }); await session.sendAndWait({ prompt: "Write a quicksort implementation in TypeScript" });