com.microsoft.semantickernel.services.AIService 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;
/**
* Marker interface for AI services. {@code AIService}s are registered with the {@code Kernel} and
* are used to provide access to AI services.
*/
public interface AIService {
/**
* Gets the model identifier.
*
* @return The model identifier if it was specified in the service's attributes; otherwise,
* {@code null}.
*/
@Nullable
String getModelId();
/**
* Gets the service identifier.
*
* @return The service identifier.
*/
@Nullable
String getServiceId();
}