Repository navigation
feat(agent): allow session-owned tool execution - #4111
Merged
Merged
Conversation
ananthsub
previously approved these changes
Oct 6, 2026
Contributor
|
/ok to test 551c61f |
This was referenced Oct 6, 2026
ffrujeri
force-pushed
the
ffrujeri/simple-agent-session-execute-tools
branch
from
October 6, 2026 18:54
551c61f to
19fa605
Compare
Contributor
|
/ok to test 19fa605 |
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
ffrujeri
force-pushed
the
ffrujeri/simple-agent-session-execute-tools
branch
from
October 6, 2026 19:03
19fa605 to
ae881bf
Compare
Contributor
|
/ok to test ae881bf |
ananthsub
approved these changes
Oct 6, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37520329281 |
ananthsub
pushed a commit
that referenced
this pull request
Oct 6, 2026
….7.0` (#4130) beep boop [🤖]: Hi @ffrujeri 👋, we've cherry picked #4111 into `r0.7.0` for you! 🚀 Please review and approve this cherry pick by your convenience! Signed-off-by: Felipe Vieira Frujeri <[email protected]> Signed-off-by: NeMo Bot <[email protected]> Co-authored-by: Felipe Vieira Frujeri <[email protected]>
This branch was previously deployed
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
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.
What changed and why
Adds a documented
execute_toolscontrol to SimpleAgent for Environment Server agent sessions. When disabled, a session activation returns unresolved function calls to its owning Environment Server. Plain/v1/responsesand legacy/runreject that configuration instead of silently producing truncated rollouts.This extracts the generic SimpleAgent dependency requested while reviewing #3800 and supports the UserSim runtime tracked by #985.
Validation
uv run pytest responses_api_agents/simple_agent/tests/test_app.py -q— 29 passeduv run pre-commit run --files responses_api_agents/simple_agent/app.py responses_api_agents/simple_agent/tests/test_app.py— passedgit diff --check origin/main...HEAD— passedRollout evidence
N/A: this is a focused Agent session-control change. The dependent UserSim runtime PR owns end-to-end rollout validation.
Compatibility
Default behavior remains
execute_tools: true. The new false setting is rejected outside agent sessions.