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)
36
await 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")]));
395
ChatResponse response = await router.
GetResponseAsync
([new(ChatRole.User, "hi")]);
423
_ = await router.
GetResponseAsync
([new(ChatRole.User, "hi")]);
446
ChatResponse response = await router.
GetResponseAsync
([new(ChatRole.User, "hi")]);
474
() => router.
GetResponseAsync
([new(ChatRole.User, "hi")]));
502
ChatResponse? response = await router.
GetResponseAsync
([new(ChatRole.User, "hi")]);
556
() => router.
GetResponseAsync
(
589
() => router.
GetResponseAsync
(
758
ChatResponse response = await client.
GetResponseAsync
([new(ChatRole.User, "hi")]);
ChatRouting\OrderedFailoverChatClientTests.cs (11)
49
ChatResponse response = await client.
GetResponseAsync
([new(ChatRole.User, "hi")]);
80
ChatResponse 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")]);
183
client.
GetResponseAsync
([new(ChatRole.User, index.ToString())])),
226
ChatResponse response = await failover.
GetResponseAsync
([new(ChatRole.User, "hi")]);
261
_ = await client.
GetResponseAsync
(
314
() => client.
GetResponseAsync
(
362
ChatResponse response = await outer.
GetResponseAsync
([new(ChatRole.User, "hi")]);