Base:
method
GetResponseAsync
Microsoft.Extensions.AI.RoutingChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>, Microsoft.Extensions.AI.ChatOptions, System.Threading.CancellationToken)
29 references to GetResponseAsync
Microsoft.Extensions.AI.Tests (29)
ChatRouting\FailoverChatClientTests.cs (18)
36await Assert.ThrowsAsync<ArgumentNullException>(() => router.GetResponseAsync(null!)); 59: router.GetResponseAsync([new(ChatRole.User, "hi")]); 85: router.GetResponseAsync( 107: router.GetResponseAsync([new(ChatRole.User, "hi")]); 134() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 165() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 196() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 277: await router.GetResponseAsync([new(ChatRole.User, "hi")], requestOptions); 324: await router.GetResponseAsync([new(ChatRole.User, "hi")], requestOptions); 352() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 395ChatResponse response = await router.GetResponseAsync([new(ChatRole.User, "hi")]); 423_ = await router.GetResponseAsync([new(ChatRole.User, "hi")]); 446ChatResponse response = await router.GetResponseAsync([new(ChatRole.User, "hi")]); 474() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 502ChatResponse? response = await router.GetResponseAsync([new(ChatRole.User, "hi")]); 556() => router.GetResponseAsync( 589() => router.GetResponseAsync( 758ChatResponse response = await client.GetResponseAsync([new(ChatRole.User, "hi")]);
ChatRouting\OrderedFailoverChatClientTests.cs (11)
49ChatResponse response = await client.GetResponseAsync([new(ChatRole.User, "hi")]); 80ChatResponse response = await client.GetResponseAsync([new(ChatRole.User, "hi")]); 101() => client.GetResponseAsync([new(ChatRole.User, "hi")])); 121() => client.GetResponseAsync([new(ChatRole.User, "hi")])); 144_ = await client.GetResponseAsync([new(ChatRole.User, "one")]); 145_ = await client.GetResponseAsync([new(ChatRole.User, "two")]); 183client.GetResponseAsync([new(ChatRole.User, index.ToString())])), 226ChatResponse response = await failover.GetResponseAsync([new(ChatRole.User, "hi")]); 261_ = await client.GetResponseAsync( 314() => client.GetResponseAsync( 362ChatResponse response = await outer.GetResponseAsync([new(ChatRole.User, "hi")]);