com.microsoft.semantickernel.services.NamedServiceProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantickernel-api Show documentation
Show all versions of semantickernel-api Show documentation
Defines the public interface for the Semantic Kernel
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.services;
import javax.annotation.Nullable;
/**
* A service provider for named services.
*
* @param The type of the service.
*/
public interface NamedServiceProvider {
/**
* Gets the service of the specified type and name, or {@code null} if not found.
*
* @param name The name of the service, or {@code null} for the default service.
* @param clazz The type of the service.
* @param The specific type of the service
* @return The service instance, or {@code null} if not found.
*/
@Nullable
public U getService(@Nullable String name, Class clazz);
}