1 write to _chatClient
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
33
_chatClient
= CreateChatClient();
16 references to _chatClient
Microsoft.Extensions.AI.Integration.Tests (16)
ChatClientIntegrationTests.cs (16)
38
_chatClient
?.Dispose();
49
var response = await
_chatClient
.CompleteAsync("What's the biggest animal?");
59
var response = await
_chatClient
.CompleteAsync(
84
await foreach (var chunk in
_chatClient
.CompleteStreamingAsync(chatHistory))
102
var response = await
_chatClient
.CompleteAsync("Explain in 10 words how AI works");
115
var response =
_chatClient
.CompleteStreamingAsync("Explain in 10 words how AI works", new()
144
var response = await
_chatClient
.CompleteAsync(
171
new OpenTelemetryChatClient(
_chatClient
, sourceName: sourceName));
204
using var chatClient = new FunctionInvokingChatClient(
_chatClient
);
220
using var chatClient = new FunctionInvokingChatClient(
_chatClient
);
247
using var chatClient = new FunctionInvokingChatClient(
_chatClient
);
280
using var chatClient = new FunctionInvokingChatClient(
_chatClient
);
301
using var chatClient = new FunctionInvokingChatClient(
_chatClient
);
319
var firstResponse = await
_chatClient
.CompleteAsync([message]);
322
var secondResponse = await
_chatClient
.CompleteAsync([message]);
332
_chatClient
,