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

com.microsoft.semantickernel.semanticfunctions.PromptTemplateOption Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// 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 }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy