Files
openai--openai-agents-python/examples/basic
steven10a 22a63aad8b Adding tool input and output guardrails (#1792)
- This PR was started from [PR 1606: Tool
Guardrails](https://github.com/openai/openai-agents-python/pull/1606)
- It adds input and output guardrails at the tool level which can
trigger `ToolInputGuardrailTripwireTriggered` and
`ToolOutputGuardrailTripwireTriggered` exceptions
- It includes updated documentation, a runnable example, and unit tests
- `make check` and unit tests all pass

## Edits since last review:
- Extracted nested tool running logic in `_run_impl.py`
- Added rejecting tool call or tool call output and returning a message
to the model (rather than only raising an exception)
- Added the tool guardrail results to the `RunResult`
- Removed docs
2025-09-26 11:41:41 -04:00
..
2025-03-11 09:42:28 -07:00
2025-06-16 15:47:48 -04:00
2025-03-11 09:42:28 -07:00