From 429affc06af61458f47dd29983478fa2212759ee Mon Sep 17 00:00:00 2001 From: Jimmy Pan Date: Sat, 31 Jan 2026 13:12:12 -0800 Subject: [PATCH] Add a new line after the model generates final text response after tool call --- docs/getting-started.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index fc28d8f3..fd5559af 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -432,6 +432,10 @@ session.on("assistant.message_delta", (event) => { process.stdout.write(event.data.deltaContent); }); +session.on("session.idle", () => { + console.log(); // New line when done +}); + await session.sendAndWait({ prompt: "What's the weather like in Seattle and Tokyo?", });