7 implementations of GetService
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\DelegatingChatClient.cs (1)
66public virtual object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestChatClient.cs (1)
29public object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
68public object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.Integration.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
29public object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
176public object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
95public object? GetService(Type serviceType, object? serviceKey = null)
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
29public object? GetService(Type serviceType, object? serviceKey = null)
2 references to GetService
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatClientExtensions.cs (1)
27return (TService?)client.GetService(typeof(TService), serviceKey);
ChatCompletion\DelegatingChatClient.cs (1)
73InnerClient.GetService(serviceType, serviceKey);