9 references to Use
Microsoft.Extensions.AI (7)
ChatCompletion\ChatClientBuilder.cs (3)
68
return
Use
((innerClient, _) => clientFactory(innerClient));
102
return
Use
((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, sharedFunc));
137
return
Use
((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, completeFunc, completeStreamingFunc));
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
28
return builder.
Use
((innerClient, services) =>
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
31
return builder.
Use
((innerClient, services) =>
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
29
return builder.
Use
((innerClient, services) =>
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
31
Throw.IfNull(builder).
Use
((innerClient, services) =>
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ChatClientBuilderTest.cs (1)
25
builder.
Use
((innerClient, serviceProvider) =>
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
408
b.
Use
((c, services) => new FunctionInvokingChatClient(c, services.GetRequiredService<ILogger<FunctionInvokingChatClient>>()));