forked from openai/openai-agents-python
-
Notifications
You must be signed in to change notification settings - Fork 0
merge from origin #3
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
Open
vcshih
wants to merge
462
commits into
veris-ai:v0.0.16-tool-call
Choose a base branch
from
openai:main
base: v0.0.16-tool-call
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+63,310
−4,041
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Automated update of translated documentation Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This pull request migrates the translation script from o3 to gpt-5 model.
Automated update of translated documentation Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
There was a problem with the current implementation, where for a single repsonse, we might have many different guardrails fire. We should have at most one per response.
Automated update of translated documentation Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Some customers have reported that the agent loop can go on for a long time and use up the entire context window. This PR allows modifying the data sent to the model.
We were making deep copies, which is (1) inefficient and (2) causes some pickling errors. Instead, this PR just makes shallow copies, calling list.copy(). We do want a shallow copy so that mutations don't affect the original past-end list.
@rzhao-openai was seeing errors about incoming messages being too large. Turns out there's a default limit of 2**20 = 1,048,576 bytes.
### 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 <[email protected]>
Automated update of translated documentation Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…p_on_first_tool` behavior (#1510)
…name" parameter for "input_file" items (#1513)
Co-authored-by: Kazuhiro Sera <[email protected]>
Co-authored-by: Kazuhiro Sera <[email protected]>
## Summary - add a `nest_handoff_history` flag to `RunConfig` and call a new helper that condenses the prior transcript into a developer-role summary when handing off - update the default handoff path, docs, and helper library so that the developer summary is produced automatically unless a custom filter overrides it - expand the handoff-focused tests to cover the new behavior (including helper unit tests) and update existing expectations ## Testing - `uv run pytest tests/test_extension_filters.py` - `uv run pytest tests/test_agent_runner.py -k handoff` - `uv run pytest tests/test_agent_runner_streamed.py -k handoff` ------ https://chatgpt.com/codex/tasks/task_i_68ff73bda0f4832496f3d1fa9103905f
Co-authored-by: Kazuhiro Sera <[email protected]>
Co-authored-by: khanhkhanhlele <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.