Skip to content

Python: Fix doc string for allow_dangerously_set_content #6431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/semantic_kernel/prompt_template/input_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

"""
Expand Down
Loading