All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.semantickernel.services.KernelContent Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.services;

import com.microsoft.semantickernel.orchestration.FunctionResultMetadata;
import javax.annotation.Nullable;

/**
 * Base class which represents the content returned by an AI service.
 *
 * @param  The type of the content.
 */
public interface KernelContent {

    /**
     * The inner content representation. Use this to bypass the current
     * abstraction. The usage of this property is considered "unsafe".
     * Use it only if strictly necessary.
     * @return The inner content.
     */
    @Nullable
    T getInnerContent();

    /**
     * The metadata associated with the content.
     * @return The metadata.
     */
    @Nullable
    FunctionResultMetadata getMetadata();

    /**
     * Gets the content returned by the AI service.
     *
     * @return The content.
     */
    @Nullable
    String getContent();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy