Base:
method
GetResponseAsync
Microsoft.Extensions.AI.DelegatingChatClient.GetResponseAsync(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>, Microsoft.Extensions.AI.ChatOptions, System.Threading.CancellationToken)
30 references to GetResponseAsync
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
234
var response = await chatClient.
GetResponseAsync
(messages, new()
302
var response = await chatClient.
GetResponseAsync
(messages, new()
334
var response = await chatClient.
GetResponseAsync
(messages, new()
366
var response = await chatClient.
GetResponseAsync
(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientIntegrationTests.cs (1)
406
response = await chatClient.
GetResponseAsync
([], chatOptions);
Microsoft.Extensions.AI.Tests (25)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (2)
1436
var result = await service.
GetResponseAsync
(CloneInput(input), options);
1493
var result = await service.
GetResponseAsync
(CloneInput(input), options);
ChatCompletion\FunctionInvokingChatClientTests.cs (23)
426
response = await client.
GetResponseAsync
(messages, options);
505
response = await client.
GetResponseAsync
(messages, options);
589
response = await client.
GetResponseAsync
(messages, options);
1254
ChatResponse response = await client.
GetResponseAsync
(messages, options);
1379
var result = await chatClient.
GetResponseAsync
(messages, chatOptions);
1390
result = await chatClient.
GetResponseAsync
(messages, chatOptions);
2210
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2281
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2327
var response = await client2.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2591
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2689
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2795
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2898
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3000
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3078
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3174
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3276
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3383
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3591
await client.
GetResponseAsync
(messages, options);
3628
await client.
GetResponseAsync
(messages, options);
3678
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
3755
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
3818
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);