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)
244
var response = await chatClient.
GetResponseAsync
(messages, new()
312
var response = await chatClient.
GetResponseAsync
(messages, new()
344
var response = await chatClient.
GetResponseAsync
(messages, new()
376
var response = await chatClient.
GetResponseAsync
(messages, new()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientIntegrationTests.cs (1)
282
response = await chatClient.
GetResponseAsync
([], chatOptions);
Microsoft.Extensions.AI.Tests (23)
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);
2046
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2117
: await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2163
var response = await client2.
GetResponseAsync
([new ChatMessage(ChatRole.User, "hello")], options);
2427
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2525
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2631
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2734
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2836
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
2914
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3010
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3112
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3219
var result = await client.
GetResponseAsync
([new ChatMessage(ChatRole.User, "test")], options);
3395
await client.
GetResponseAsync
(messages, options);
3432
await 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);