9 implementations of GetResponseAsync
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\DelegatingChatClient.cs (1)
41public virtual Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestChatClient.cs (1)
29public Task<ChatResponse> GetResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
86public async Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.Integration.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
29public Task<ChatResponse> GetResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
83public async Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.OpenAI (2)
OpenAIAssistantClient.cs (1)
72public Task<ChatResponse> GetResponseAsync(
OpenAIChatClient.cs (1)
105public async Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
29public Task<ChatResponse> GetResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
36public virtual Task<ChatResponse> GetResponseAsync(IEnumerable<ChatMessage> messages, ChatOptions? options = null, CancellationToken cancellationToken = default)
38 references to GetResponseAsync
Microsoft.Extensions.AI (11)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
102response = await InnerClient.GetResponseAsync(messages, options, cancellationToken).ConfigureAwait(false);
ChatCompletion\CachingChatClient.cs (2)
138/// This is used when there is a call to <see cref="IChatClient.GetResponseAsync"/>. 158/// This is used when there is a call to <see cref="IChatClient.GetResponseAsync"/>.
ChatCompletion\ChatClientBuilder.cs (7)
90/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 93/// A delegate that provides the implementation for both <see cref="IChatClient.GetResponseAsync"/> and 114/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 117/// A delegate that provides the implementation for <see cref="IChatClient.GetResponseAsync"/>. When <see langword="null"/>, 118/// <paramref name="getStreamingResponseFunc"/> must be non-null, and the implementation of <see cref="IChatClient.GetResponseAsync"/> 129/// <paramref name="getResponseFunc"/> will provide the implementation of <see cref="IChatClient.GetResponseAsync"/>, and 135/// <see cref="IChatClient.GetResponseAsync"/> will be implemented by combining the updates from <paramref name="getStreamingResponseFunc"/>.
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
222var result = await chatClient.GetResponseAsync(messages, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponse.cs (1)
69/// the input messages supplied to <see cref="IChatClient.GetResponseAsync"/> need only be the additional messages beyond
ChatCompletion\DelegatingChatClient.cs (1)
43InnerClient.GetResponseAsync(messages, options, cancellationToken);
ChatCompletion\IChatClient.cs (1)
19/// However, implementations of <see cref="IChatClient"/> might mutate the arguments supplied to <see cref="GetResponseAsync"/> and
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceChatClientTests.cs (3)
159var response = await client.GetResponseAsync(messages, new() 543var response = await client.GetResponseAsync(messages, new() 684var response = await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (4)
AdditionalContextTests.cs (2)
62ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 97ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions);
EndToEndTests.cs (2)
72ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 123ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions);
Microsoft.Extensions.AI.Evaluation.Quality (3)
RelevanceTruthAndCompletenessEvaluator.cs (1)
112await chatConfiguration.ChatClient.GetResponseAsync(
SingleNumericMetricEvaluator.cs (1)
69await chatConfiguration.ChatClient.GetResponseAsync(
Utilities\JsonOutputFixer.cs (1)
72await chatConfig.ChatClient.GetResponseAsync(
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
54await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
272var response = await client.GetResponseAsync(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
447var response = await client.GetResponseAsync(messages, new() 554var response = await client.GetResponseAsync(messages); 655var response = await client.GetResponseAsync(messages); 1031var response = await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Tests (8)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
76var response = await client.GetResponseAsync(Array.Empty<ChatMessage>(), providedOptions, cts.Token);
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
641var result = await service.GetResponseAsync(chat, options, cts.Token);
ChatCompletion\UseDelegateChatClientTests.cs (6)
67ChatResponse response = await client.GetResponseAsync(expectedMessages, expectedOptions, expectedCts.Token); 102var cc = await innerClient.GetResponseAsync(messages, options, cancellationToken); 110ChatResponse response = await client.GetResponseAsync(expectedMessages, expectedOptions, expectedCts.Token); 161ChatResponse response = await client.GetResponseAsync(expectedMessages, expectedOptions, expectedCts.Token); 205var cc = await innerClient.GetResponseAsync(messages, options, cancellationToken); 232ChatResponse response = await client.GetResponseAsync(expectedMessages, expectedOptions, expectedCts.Token);