Skip to content
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

Fix guardrail trigger in input_guardrails.py #83

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

HarshJa1n
Copy link
Contributor

Remove the not keyword from the tripwire_triggered parameter in the math_guardrail function in examples/agent_patterns/input_guardrails.py.

The not keyword prevented the guardrail from being triggered, which defeats the purpose of the example.

Remove the `not` keyword from the `tripwire_triggered` parameter in the `math_guardrail` function in `examples/agent_patterns/input_guardrails.py`.

The not keyword prevented the guardrail from being triggered, which defeats the purpose of the example.
@rm-openai rm-openai merged commit d4f01e6 into openai:main Mar 12, 2025
5 checks passed
nakasy000 pushed a commit to nakasy000/openai-agents-python that referenced this pull request Mar 27, 2025
Fix guardrail trigger in input_guardrails.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants