Created
May 30, 2026 12:28
-
-
Save wullemsb/485dd6bfb3cd19d8ce0c434a0ba3dc19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| session.On<AssistantMessageDeltaEvent>(evt => | |
| { | |
| if(!string.IsNullOrEmpty(delta.Data?.DeltaContent)) | |
| channel.Writer.TryWrite(delta.Data.DeltaContent); | |
| }); | |
| session.On<SessionIdleEvent>(evt= > | |
| { | |
| channel.Writer.TryComplete(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment