24 Commits

Author SHA1 Message Date
dfedoryshchev dac872ebbc docs: correct nonexistent guardrail type names (#4218) 2026-08-05 22:52:46 +00:00
Kazuhiro Sera a6ce52d255 docs: use decorators module throughout examples (#3946) 2026-07-28 07:57:19 +09:00
Kazuhiro Sera e1f7c12515 fix: make conditional tools and web search examples deterministic 2026-07-11 09:38:53 +09:00
Kazuhiro Sera 0354f482a8 feat: add hosted multi-agent beta support (#3788) 2026-07-10 17:46:43 +09:00
Kazuhiro Sera a898061dfa docs: make markdown style consistent across the project 2026-07-04 09:04:30 +09:00
Kazuhiro Sera 1959dd3ba9 feat: #2658 preserve explicit approval rejection messages across resume flows (#2660) 2026-03-13 14:23:32 +09:00
Kazuhiro Sera 9b1f6eddc8 docs: improve examples for auto runs 2026-03-06 17:59:35 +09:00
Kazuhiro Sera d6c4390134 feat: add tool_error_formatter for customizing error tool output (#2400) 2026-02-03 21:06:37 +09:00
Kazuhiro Sera c1432cab34 feat: add structured agent tool input support (#2383) 2026-02-03 13:29:29 +09:00
Kazuhiro Sera 3ce7c24d34 feat: #636 Add human-in-the-loop (HITL) support (#2230)
Co-authored-by: Michael James Schock <m@mjschock.com>
2026-01-29 12:16:28 +09:00
Kazuhiro Sera c06a8bb42a feat: add examples auto-run skill and refresh example scripts (#2303)
see also: https://github.com/openai/openai-agents-js/pull/848
2026-01-13 22:59:15 +09:00
Kazuhiro Sera f8153b95a2 Update examples (#2300) 2026-01-13 12:09:03 +09:00
Kazuhiro Sera 0ac51e2a3b feat: Add on_stream to agents as tools (#2169) 2025-12-16 09:01:23 +09:00
Thein Oo 107ef043fd Add conditional tool enabling feature to agent as tool. (#1193)
### Summary

Adds `is_enabled` parameter to `Agent.as_tool()` method for
conditionally enabling/disabling agent tools at runtime. Supports
boolean values and callable functions for dynamic tool filtering
  in multi-agent orchestration.

  ### Test plan

  - Added unit tests in `tests/test_agent_as_tool.py`
- Added example in
`examples/agent_patterns/agents_as_tools_conditional.py`
  - Updated documentation in `docs/tools.md`
  - All tests pass

  ### Issue number

  Closes #1097

  ### Checks

  - [x] I've added new tests (if relevant)
  - [x] I've added/updated the relevant documentation
  - [x] I've run `make lint` and `make format`
  - [x] I've made sure tests pass

---------

Co-authored-by: thein <thein@MacBook-Pro.local>
2025-08-15 19:44:17 -04:00
MUHAMMAD SALMAN HUSSAIN 4cb07d541d feat: add loop safeguard and fix instruction spacing/grammar (#1284) 2025-07-29 13:43:18 +09:00
MUHAMMAD SALMAN HUSSAIN c078c69415 Fix typo in Evaluator Instructions (capitalization of "After 5 attemp… (#1067)
Corrected the capitalization of "after" to "After" in the evaluator
instructions string to ensure grammatical consistency and proper
formatting.
2025-07-12 07:22:05 +09:00
Zaid Rehan a9757de767 Updated llm_as_a_judge.py (#1055)
Updated the evaluator agent’s instructions in llm_as_a_judge.py to
prevent infinite evaluation loops. The agent is now instructed to
provide a final evaluation after 5 attempts, allowing approval if the
story outline is good enough, even if it is not perfect.
2025-07-11 11:05:38 +09:00
Venkat Naveen ad80f788b9 Update input_guardrails.py (#774)
Changed the function comment as input_guardrails only deals with input
messages
2025-05-30 12:13:57 -04:00
Rohan Mehta 5727a1c73a Example for streaming guardrails (#505)
An example for the question in the issue attached - how to run
guardrails during streaming.

Towards #495.
2025-04-14 12:40:41 -04:00
Rohan Mehta 10aa5555af Introduce tool_use_behavior on agents 2025-03-18 21:55:12 -04:00
heartkilla 54a48a3967 fix reasoning order in examples 2025-03-17 14:56:43 +09:00
Harsh Jain f0f93dbe0b Fix guardrail trigger in input_guardrails.py
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.
2025-03-12 18:10:28 +05:30
Pierangelo Di Pilato 832d9a99c5 Fix guardrails examples link
Link to input and output guardrails examples
2025-03-11 18:26:56 +01:00
Rohan Mehta aaec57a426 Initial commit 2025-03-11 09:42:28 -07:00