com.microsoft.semantickernel.implementation.templateengine.tokenizer.blocks.TextRendering 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.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);
}