10 implementations of GetStreamingResponseAsync
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\DelegatingChatClient.cs (1)
47public virtual IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestChatClient.cs (1)
32public IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
140public async IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyChatClient.cs (1)
94public async IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
Microsoft.Extensions.AI.Integration.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
32public IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
126public async IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
96public IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
OpenAIResponseChatClient.cs (1)
148public async IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
32public IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
57public virtual async IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
29 references to GetStreamingResponseAsync
Microsoft.Extensions.AI (11)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
146await foreach (var update in InnerClient.GetStreamingResponseAsync(messages, options, cancellationToken))
ChatCompletion\CachingChatClient.cs (2)
167/// This is used when there is a call to <see cref="IChatClient.GetStreamingResponseAsync"/>. 189/// This is used when there is a call to <see cref="IChatClient.GetStreamingResponseAsync"/>.
ChatCompletion\ChatClientBuilder.cs (7)
92/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 96/// <see cref="IChatClient.GetStreamingResponseAsync"/>. This delegate is invoked with the list of chat messages, the chat 117/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 125/// A delegate that provides the implementation for <see cref="IChatClient.GetStreamingResponseAsync"/>. When <see langword="null"/>, 126/// <paramref name="getResponseFunc"/> must be non-null, and the implementation of <see cref="IChatClient.GetStreamingResponseAsync"/> 133/// <paramref name="getStreamingResponseFunc"/> will provide the implementation of <see cref="IChatClient.GetStreamingResponseAsync"/>. 135/// is supplied without <paramref name="getStreamingResponseFunc"/>, the implementation of <see cref="IChatClient.GetStreamingResponseAsync"/>
ChatCompletion\FunctionInvocationContext.cs (1)
104/// <see cref="IChatClient.GetStreamingResponseAsync"/> call as opposed to a <see cref="IChatClient.GetResponseAsync"/> call.
Microsoft.Extensions.AI.Abstractions (5)
ChatCompletion\ChatClientExtensions.cs (1)
160return client.GetStreamingResponseAsync([chatMessage], options, cancellationToken);
ChatCompletion\ChatOptions.cs (1)
120/// When <see cref="IChatClient.GetResponseAsync" /> or <see cref="IChatClient.GetStreamingResponseAsync" />
ChatCompletion\ChatResponseUpdate.cs (1)
122/// the input messages supplied to <see cref="IChatClient.GetStreamingResponseAsync"/> need only be the additional messages beyond
ChatCompletion\DelegatingChatClient.cs (1)
49InnerClient.GetStreamingResponseAsync(messages, options, cancellationToken);
ChatCompletion\IChatClient.cs (1)
25/// <see cref="GetStreamingResponseAsync"/>, such as by configuring the options instance. Thus, consumers of the interface either
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
222await foreach (var update in client.GetStreamingResponseAsync(messages, new()
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyChatClient.cs (1)
121_originalChatClient.GetStreamingResponseAsync(
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (2)
100await foreach (var chunk in _chatClient.GetStreamingResponseAsync(chatHistory)) 156var streamingResponse = _chatClient.GetStreamingResponseAsync(history);
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
80await using var e = client.GetStreamingResponseAsync(Array.Empty<ChatMessage>(), providedOptions, cts.Token).GetAsyncEnumerator();
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
1061var result = await service.GetStreamingResponseAsync(new EnumeratedOnceEnumerable<ChatMessage>(chat), options, cts.Token).ToChatResponseAsync();
ChatCompletion\LoggingChatClientTests.cs (1)
117await foreach (var update in client.GetStreamingResponseAsync(
ChatCompletion\UseDelegateChatClientTests.cs (6)
71response = await client.GetStreamingResponseAsync(expectedMessages, expectedOptions, expectedCts.Token).ToChatResponseAsync(); 113response = await client.GetStreamingResponseAsync(expectedMessages, expectedOptions, expectedCts.Token).ToChatResponseAsync(); 149await foreach (var update in innerClient.GetStreamingResponseAsync(messages, options, cancellationToken)) 164response = await client.GetStreamingResponseAsync(expectedMessages, expectedOptions, expectedCts.Token).ToChatResponseAsync(); 220await foreach (var update in innerClient.GetStreamingResponseAsync(messages, options, cancellationToken)) 235response = await client.GetStreamingResponseAsync(expectedMessages, expectedOptions, expectedCts.Token).ToChatResponseAsync();