6 references to ToStreamingChatCompletionUpdates
Microsoft.Extensions.AI (2)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
172foreach (var update in completion.ToStreamingChatCompletionUpdates())
ChatCompletion\CachingChatClient.cs (1)
82foreach (var chunk in chatCompletion.ToStreamingChatCompletionUpdates())
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdate.cs (1)
34/// <see cref="ChatCompletion.ToStreamingChatCompletionUpdates"/>, which enable bidirectional conversions
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatCompletionTests.cs (2)
217StreamingChatCompletionUpdate[] updates = completion.ToStreamingChatCompletionUpdates(); 267StreamingChatCompletionUpdate[] updates = completion.ToStreamingChatCompletionUpdates();
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
587return YieldAsync(new ChatCompletion(new ChatMessage(ChatRole.Assistant, [.. plan[contents.Count].Contents])).ToStreamingChatCompletionUpdates());