10 implementations of GetResponseAsync
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\DelegatingChatClient.cs (1)
42public 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)
84public async Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyChatClient.cs (1)
60public 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)
88public async Task<ChatResponse> GetResponseAsync(
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
80public async Task<ChatResponse> GetResponseAsync(
OpenAIResponseChatClient.cs (1)
74public 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)
52 references to GetResponseAsync
Microsoft.Extensions.AI (12)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
105response = await InnerClient.GetResponseAsync(messages, options, cancellationToken);
ChatCompletion\CachingChatClient.cs (2)
157/// This is used when there is a call to <see cref="IChatClient.GetResponseAsync"/>. 177/// This is used when there is a call to <see cref="IChatClient.GetResponseAsync"/>.
ChatCompletion\ChatClientBuilder.cs (7)
92/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 95/// A delegate that provides the implementation for both <see cref="IChatClient.GetResponseAsync"/> and 117/// an implementation for both <see cref="IChatClient.GetResponseAsync"/> and <see cref="IChatClient.GetStreamingResponseAsync"/>. 120/// A delegate that provides the implementation for <see cref="IChatClient.GetResponseAsync"/>. When <see langword="null"/>, 121/// <paramref name="getStreamingResponseFunc"/> must be non-null, and the implementation of <see cref="IChatClient.GetResponseAsync"/> 132/// <paramref name="getResponseFunc"/> will provide the implementation of <see cref="IChatClient.GetResponseAsync"/>, and 138/// <see cref="IChatClient.GetResponseAsync"/> will be implemented by combining the updates from <paramref name="getStreamingResponseFunc"/>.
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
218var result = await chatClient.GetResponseAsync(messages, options, cancellationToken);
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\ChatOptions.cs (1)
130/// When <see cref="IChatClient.GetResponseAsync" /> or <see cref="IChatClient.GetStreamingResponseAsync" />
ChatCompletion\ChatResponse.cs (2)
69/// the input messages supplied to <see cref="IChatClient.GetResponseAsync"/> need only be the additional messages beyond 88/// the input messages supplied to <see cref="IChatClient.GetResponseAsync"/> need only be the additional messages beyond
ChatCompletion\DelegatingChatClient.cs (1)
44InnerClient.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)
148var response = await client.GetResponseAsync(messages, new() 1010var response = await client.GetResponseAsync(messages, new() 1152var response = await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (9)
QualityEvaluatorTests.cs (4)
96ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 135ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 172ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 207ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions);
SafetyEvaluatorTests.cs (5)
147ChatResponse response = await chatClient.GetResponseAsync(messages, _chatOptions); 209ChatResponse response1 = await chatClient.GetResponseAsync(messages, _chatOptions); 215ChatResponse response2 = await chatClient.GetResponseAsync(messages, _chatOptions); 529ChatResponse response1 = await chatClient.GetResponseAsync(messages, _chatOptions); 535ChatResponse response2 = await chatClient.GetResponseAsync(messages, _chatOptions);
Microsoft.Extensions.AI.Evaluation.Quality (9)
CoherenceEvaluator.cs (1)
94chatConfiguration.ChatClient.GetResponseAsync(
CompletenessEvaluator.cs (1)
99chatConfiguration.ChatClient.GetResponseAsync(
EquivalenceEvaluator.cs (1)
100chatConfiguration.ChatClient.GetResponseAsync(
FluencyEvaluator.cs (1)
86chatConfiguration.ChatClient.GetResponseAsync(
GroundednessEvaluator.cs (1)
100chatConfiguration.ChatClient.GetResponseAsync(
RelevanceEvaluator.cs (1)
100chatConfiguration.ChatClient.GetResponseAsync(
RelevanceTruthAndCompletenessEvaluator.cs (1)
118chatConfiguration.ChatClient.GetResponseAsync(
RetrievalEvaluator.cs (1)
107chatConfiguration.ChatClient.GetResponseAsync(
Utilities\JsonOutputFixer.cs (1)
72await chatConfig.ChatClient.GetResponseAsync(
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyChatClient.cs (1)
84return await _originalChatClient.GetResponseAsync(
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
54await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
274var response = await client.GetResponseAsync(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
769var response = await client.GetResponseAsync(messages, new() 874var response = await client.GetResponseAsync(messages); 972var response = await client.GetResponseAsync(messages); 1425var response = await client.GetResponseAsync(messages);
Microsoft.Extensions.AI.Tests (7)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
76var response = await client.GetResponseAsync(Array.Empty<ChatMessage>(), providedOptions, 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);