From 431e07cd4678a0c6dd8b031f8a7da69e901cd08e Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Tue, 28 May 2024 15:25:50 -0400 Subject: [PATCH] Fix doc string for allow_dangerously_set_content --- python/semantic_kernel/prompt_template/input_variable.py | 5 +++-- .../prompt_template/prompt_template_config.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/semantic_kernel/prompt_template/input_variable.py b/python/semantic_kernel/prompt_template/input_variable.py index e61ea0c26343..eefeb7e3e917 100644 --- a/python/semantic_kernel/prompt_template/input_variable.py +++ b/python/semantic_kernel/prompt_template/input_variable.py @@ -14,8 +14,9 @@ class InputVariable(KernelBaseModel): default: The default value of the input variable. is_required: Whether the input variable is required. json_schema: The JSON schema for the input variable. - allow_dangerously_set_content (default: false): Allow content without encoding, this controls - if this variable is encoded before use. + allow_dangerously_set_content (bool = False): Allow content without encoding throughout, this overrides + the same settings in the prompt template config and input variables. + This reverts the behavior to unencoded input. """ name: str diff --git a/python/semantic_kernel/prompt_template/prompt_template_config.py b/python/semantic_kernel/prompt_template/prompt_template_config.py index da79603f2f00..c670f56da5f7 100644 --- a/python/semantic_kernel/prompt_template/prompt_template_config.py +++ b/python/semantic_kernel/prompt_template/prompt_template_config.py @@ -24,8 +24,9 @@ class PromptTemplateConfig(KernelBaseModel): template: The template for the prompt. template_format: The format of the template, should be 'semantic-kernel', 'jinja2' or 'handlebars'. input_variables: The input variables for the prompt. - allow_dangerously_set_content (default: false): Allow content without encoding, this controls - if the output of functions called in the template is encoded before use. + allow_dangerously_set_content (bool = False): Allow content without encoding throughout, this overrides + the same settings in the prompt template config and input variables. + This reverts the behavior to unencoded input. execution_settings: The execution settings for the prompt. """