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

com.microsoft.semantickernel.implementation.templateengine.tokenizer.blocks.TextRendering Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.implementation.templateengine.tokenizer.blocks;

import com.microsoft.semantickernel.contextvariables.ContextVariableTypes;
import com.microsoft.semantickernel.semanticfunctions.KernelFunctionArguments;
import javax.annotation.Nullable;

/**
 * Interface of static blocks that don't need async IO to be rendered.
 */
public interface TextRendering {

    /**
     * Render the block using only the given variables.
     *
     * @param variables Optional variables used to render the block
     * @return Rendered content
     */
    @Nullable
    String render(ContextVariableTypes types, @Nullable KernelFunctionArguments variables);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy