Skip to content

feat(agent): allow session-owned tool execution - #4111

Merged
ananthsub merged 1 commit into
mainfrom
ffrujeri/simple-agent-session-execute-tools
Oct 6, 2026
Merged

ananthsub merged 1 commit into
mainfrom
ffrujeri/simple-agent-session-execute-tools

Conversation

@ffrujeri

@ffrujeri ffrujeri commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

What changed and why

Adds a documented execute_tools control to SimpleAgent for Environment Server agent sessions. When disabled, a session activation returns unresolved function calls to its owning Environment Server. Plain /v1/responses and legacy /run reject 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 passed
  • uv run pre-commit run --files responses_api_agents/simple_agent/app.py responses_api_agents/simple_agent/tests/test_app.py — passed
  • git diff --check origin/main...HEAD — passed

Rollout 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.

@copy-pr-bot

copy-pr-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ananthsub ananthsub added the r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Oct 6, 2026
ananthsub
ananthsub previously approved these changes Oct 6, 2026
@ananthsub

Copy link
Copy Markdown
Contributor

/ok to test 551c61f

@ananthsub

Copy link
Copy Markdown
Contributor

/ok to test 19fa605

@ffrujeri
ffrujeri force-pushed the ffrujeri/simple-agent-session-execute-tools branch from 19fa605 to ae881bf Compare October 6, 2026 19:03
@ananthsub

Copy link
Copy Markdown
Contributor

/ok to test ae881bf

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37520329281

@yaoyu-33 yaoyu-33 added area:agent Agent harnesses and Responses API agent behavior complexity:low Localized change in one scope with a small, straightforward review surface feature New capabilities, enhancements, or enablement work ready-to-merge PR is approved, current, and waiting for final CI or merge labels Oct 6, 2026
Merged via the queue into main with commit b1a4c82 Oct 6, 2026
47 checks passed
@ananthsub
ananthsub deleted the ffrujeri/simple-agent-session-execute-tools branch October 6, 2026 19:52
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

1 inactive deployment
public — ae881bff Deployed Oct 6, 2026 by copy-pr-bot[bot] via release / finalize / notify #4463
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior complexity:low Localized change in one scope with a small, straightforward review surface feature New capabilities, enhancements, or enablement work r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants