Skip to content

Commit 8db6f4d

Browse files
authored
Fix errors in guardrails.mdx (#574)
1 parent 34a9528 commit 8db6f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/content/docs/guides/guardrails.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Input guardrails run in three steps:
2727
2828
## Output guardrails
2929

30-
Output guardrails follow the same pattern:
30+
Output guardrails run in 3 steps:
3131

32-
1. The guardrail receives the same input passed to the agent.
32+
1. The guardrail receives the output produced by the agent.
3333
2. The guardrail function executes and returns a [`GuardrailFunctionOutput`](/openai-agents-js/openai/agents/interfaces/guardrailfunctionoutput) wrapped inside an [`OutputGuardrailResult`](/openai-agents-js/openai/agents/interfaces/outputguardrailresult).
3434
3. If `tripwireTriggered` is `true`, an [`OutputGuardrailTripwireTriggered`](/openai-agents-js/openai/agents/classes/outputguardrailtripwiretriggered) error is thrown.
3535

0 commit comments

Comments
 (0)