Update input_guardrails.py (#774)
Changed the function comment as input_guardrails only deals with input messages
This commit is contained in:
parent
0a28d71cca
commit
ad80f788b9
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ This example shows how to use guardrails.
|
||||||
Guardrails are checks that run in parallel to the agent's execution.
|
Guardrails are checks that run in parallel to the agent's execution.
|
||||||
They can be used to do things like:
|
They can be used to do things like:
|
||||||
- Check if input messages are off-topic
|
- Check if input messages are off-topic
|
||||||
- Check that output messages don't violate any policies
|
- Check that input messages don't violate any policies
|
||||||
- Take over control of the agent's execution if an unexpected input is detected
|
- Take over control of the agent's execution if an unexpected input is detected
|
||||||
|
|
||||||
In this example, we'll setup an input guardrail that trips if the user is asking to do math homework.
|
In this example, we'll setup an input guardrail that trips if the user is asking to do math homework.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue