com.microsoft.semantickernel.semanticfunctions.PromptTemplateOption 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.semanticfunctions;
/**
* Options to customize the behavior of a prompt.
*/
public enum PromptTemplateOption {
/**
* Allow methods on objects provided as arguments to an invocation, to be invoked when rendering
* a template and its return value used. Typically, this would be used to call a getter on an
* object i.e. {@code {{#each users}} {{userName}} {{/each}} } on a handlebars template will
* call the method {@code getUserName()} on each object in {@code users}.
*
* WARNING: If this option is used, ensure that your template is trusted, and that objects added
* as arguments to an invocation, do not contain methods that are unsafe to be invoked when
* rendering a template.
*/
ALLOW_CONTEXT_VARIABLE_METHOD_CALLS_UNSAFE
}