Implemented interface member:
method
GetResponseAsync
Microsoft.Extensions.AI.IChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>, Microsoft.Extensions.AI.ChatOptions, System.Threading.CancellationToken)
1 override of GetResponseAsync
Microsoft.Extensions.AI (1)
ChatRouting\FailoverChatClient.cs (1)
97public sealed override async Task<ChatResponse> GetResponseAsync(
11 references to GetResponseAsync
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatRouting\RoutingChatClientTests.cs (5)
48ChatResponse response = await router.GetResponseAsync(messages, options, cancellationSource.Token); 76() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 88() => router.GetResponseAsync([new(ChatRole.User, "hi")])); 102await Assert.ThrowsAsync<ArgumentNullException>(() => router.GetResponseAsync(null!)); 113_ = await router.GetResponseAsync([new(ChatRole.User, "hi")]);
Microsoft.Extensions.AI.Tests (6)
ChatRouting\FailoverChatClientTests.cs (2)
225_ = await router.GetResponseAsync([new(ChatRole.User, "hi")], requestOptions); 528() => router.GetResponseAsync(
ChatRouting\SemanticRoutingChatClientTests.cs (4)
118ChatResponse first = await router.GetResponseAsync([new(ChatRole.User, "debug this code")]); 119ChatResponse second = await router.GetResponseAsync([new(ChatRole.User, "debug this code")]); 170ChatResponse response = await router.GetResponseAsync([new(ChatRole.User, "query")]); 211await router.GetResponseAsync([new(ChatRole.User, "unrelated query")]);