19 references to Build
Microsoft.Extensions.AI (2)
ChatCompletion\ChatClientBuilderServiceCollectionExtensions.cs (2)
36
_ = serviceCollection.AddSingleton(builder.
Build
);
68
_ = serviceCollection.AddKeyedSingleton(serviceKey, (services, _) => builder.
Build
(services));
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
85
.
Build
();
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaChatClientIntegrationTests.cs (2)
45
.
Build
();
70
.
Build
();
OllamaChatClientTests.cs (1)
56
.
Build
();
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
103
.
Build
();
128
.
Build
();
Microsoft.Extensions.AI.Tests (11)
ChatCompletion\ChatClientBuilderTest.cs (3)
32
Assert.Same(expectedOuterClient, builder.
Build
(expectedServiceProvider));
47
var first = (InnerClientCapturingChatClient)builder.
Build
();
77
var ex = Assert.Throws<InvalidOperationException>(() => builder.
Build
());
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
74
.
Build
();
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
373
IChatClient service = innerClient.AsBuilder().UseFunctionInvocation().
Build
();
524
IChatClient service = configurePipeline(innerClient.AsBuilder()).
Build
(services);
591
IChatClient service = configurePipeline(innerClient.AsBuilder()).
Build
(services);
ChatCompletion\UseDelegateChatClientTests.cs (4)
72
.
Build
();
114
.
Build
();
165
.
Build
();
236
.
Build
();