Base:
method
GetResponseAsync
Microsoft.Extensions.AI.DelegatingChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>, Microsoft.Extensions.AI.ChatOptions, System.Threading.CancellationToken)
29 references to GetResponseAsync
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
234var response = await chatClient.GetResponseAsync(messages, new() 302var response = await chatClient.GetResponseAsync(messages, new() 334var response = await chatClient.GetResponseAsync(messages, new() 366var response = await chatClient.GetResponseAsync(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientIntegrationTests.cs (1)
406response = await chatClient.GetResponseAsync([], chatOptions);
Microsoft.Extensions.AI.Tests (24)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (1)
1436var result = await service.GetResponseAsync(CloneInput(input), options);
ChatCompletion\FunctionInvokingChatClientTests.cs (23)
426response = await client.GetResponseAsync(messages, options); 505response = await client.GetResponseAsync(messages, options); 589response = await client.GetResponseAsync(messages, options); 1254ChatResponse response = await client.GetResponseAsync(messages, options); 1379var result = await chatClient.GetResponseAsync(messages, chatOptions); 1390result = await chatClient.GetResponseAsync(messages, chatOptions); 2057: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2128: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2174var response = await client2.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2438var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2536var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2642var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2745var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2847var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2925var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3021var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3123var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3230var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3406await client.GetResponseAsync(messages, options); 3443await client.GetResponseAsync(messages, options); 3493: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 3570: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 3633: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options);