You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/wayflowcore/source/core/howtoguides/agents.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,11 @@ Sometimes, there is contextual information relevant to the conversation.
41
41
Assume a user is interacting with the assistant named "Jerry."
42
42
To make the assistant more context-aware, define a variable or expression in the ``custom_instruction`` Jinja template, and pass it when creating the conversation:
43
43
44
+
.. note::
45
+
46
+
Jinja templating introduces security concerns that are addressed by WayFlow by restricting Jinja's rendering capabilities.
47
+
Please check our guide on :ref:`How to write secure prompts with Jinja templating <securejinjatemplating>` for more information.
Copy file name to clipboardExpand all lines: docs/wayflowcore/source/core/misc/glossary.rst
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,12 +228,17 @@ Prompt Template
228
228
===============
229
229
230
230
A prompt template is a standardized prompt structure with placeholders for variable inputs, designed to maintain consistency across similar queries
231
-
while allowing for customization. WayFlow uses jinja-style placeholders to specify the input variables to the prompt (for more information check
232
-
the `reference of jinja2<https://jinja.palletsprojects.com/en/stable/templates>`_).
231
+
while allowing for customization. WayFlow uses Jinja-style placeholders to specify the input variables to the prompt (for more information check
232
+
the `reference of Jinja2<https://jinja.palletsprojects.com/en/stable/templates>`_).
233
233
234
234
See the :doc:`Tutorials and Use-Case Examples <../tutorials/index>` for concrete examples, or check the
235
235
:ref:`TemplateRenderingStep API reference <templaterenderingstep>`.
236
236
237
+
.. note::
238
+
239
+
Jinja templating introduces security concerns that are addressed by WayFlow by restricting Jinja's rendering capabilities.
240
+
Please check our guide on :ref:`How to write secure prompts with Jinja templating <securejinjatemplating>` for more information.
241
+
237
242
Prompt templates can be used in WayFlow components that use LLMs, such as :ref:`Agents <agent>` and the :ref:`PromptExecutionStep <promptexecutionstep>`.
Copy file name to clipboardExpand all lines: docs/wayflowcore/source/core/tutorials/basic_flow.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,11 @@ Parameters in a Jinja template look like this: ``{{this_is_a_template_parameter}
120
120
other sources, such as the input parameters schemas of the ``tool`` for the ``ToolExecutionStep``. There will be one input descriptor for each
121
121
parameter in the template, with a name taken from the parameter. Similarly, there will be one input descriptor for each parameter required by a ``tool``.
122
122
123
+
.. note::
124
+
125
+
Jinja templating introduces security concerns that are addressed by WayFlow by restricting Jinja's rendering capabilities.
126
+
Please check our guide on :ref:`How to write secure prompts with Jinja templating <securejinjatemplating>` for more information.
127
+
123
128
Output descriptors can also be considered names for a step's outputs. For many steps, there will be a default name for each output. For example,
124
129
for a ``ToolExecutionStep`` the default name for the output of the step is ``ToolExecutionStep.TOOL_OUTPUT``.
0 commit comments