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)
32Assert.Same(expectedOuterClient, builder.Build(expectedServiceProvider)); 47var first = (InnerClientCapturingChatClient)builder.Build(); 77var ex = Assert.Throws<InvalidOperationException>(() => builder.Build());
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
74.Build();
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
373IChatClient service = innerClient.AsBuilder().UseFunctionInvocation().Build(); 524IChatClient service = configurePipeline(innerClient.AsBuilder()).Build(services); 591IChatClient service = configurePipeline(innerClient.AsBuilder()).Build(services);
ChatCompletion\UseDelegateChatClientTests.cs (4)
72.Build(); 114.Build(); 165.Build(); 236.Build();