Demonstrates configuring the Copilot SDK with streaming: true to receive incremental response chunks. This validates that the server sends multiple assistant.message_delta events before the final assistant.message event.
- Creates a session with
streaming: true - Registers an event listener to count
assistant.message_deltaevents - Sends: "What is the capital of France?"
- Prints the final response and the number of streaming chunks received
| Option | Value | Effect |
|---|---|---|
streaming |
true |
Enables incremental streaming — the server emits assistant.message_delta events as tokens are generated |
./verify.shRequires the copilot binary (auto-detected or set COPILOT_CLI_PATH) and GITHUB_TOKEN.