Streaming with Claude: CreateStreaming, Events and Server-Sent Events in ASP.NET Core
To stream a Claude answer you handle the events from client.Messages.CreateStreaming; the usage in message_delta is cumulative and the CancellationToken must be passed to the SDK. Event order, text/thinking/input_json deltas, errors inside the stream, the Bookstore assistant with .NET 10 TypedResults.ServerSentEvents, tests with the documented events and validating partial JSON with eager_input_streaming.
15 Nov 2026
·
13 min
·
6