Base:
method
GetResponseAsync
Microsoft.Extensions.AI.DelegatingChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>, Microsoft.Extensions.AI.ChatOptions, System.Threading.CancellationToken)
28 references to GetResponseAsync
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
244var response = await chatClient.GetResponseAsync(messages, new() 312var response = await chatClient.GetResponseAsync(messages, new() 344var response = await chatClient.GetResponseAsync(messages, new() 376var response = await chatClient.GetResponseAsync(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientIntegrationTests.cs (1)
282response = await chatClient.GetResponseAsync([], chatOptions);
Microsoft.Extensions.AI.Tests (23)
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); 2046: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2117: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2163var response = await client2.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 2427var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2525var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2631var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2734var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2836var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 2914var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3010var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3112var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3219var result = await client.GetResponseAsync([new ChatMessage(ChatRole.User, "test")], options); 3395await client.GetResponseAsync(messages, options); 3432await client.GetResponseAsync(messages, options); 3482: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 3559: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options); 3622: await client.GetResponseAsync([new ChatMessage(ChatRole.User, "hello")], options);