Repository navigation
Conversation
4 tasks
This was referenced Sep 4, 2026
Send the already validated rollout and model response directly to the resources-server validation boundary. Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
force-pushed
the
ananthsub/perf-simple-agent-verify-payload
branch
from
September 28, 2026 22:40
78be99f to
ee015fe
Compare
5 tasks done
Structured-output responses carry text.format.schema, which the previous validate-then-dump path rewrote to schema_ and the verify endpoint rejected. Signed-off-by: Ananth Subramaniam <[email protected]>
yuhezhang-ai
approved these changes
Sep 29, 2026
yuhezhang-ai
left a comment
Contributor
There was a problem hiding this comment.
The new alias-preservation regression test addresses my previous comment. No blocking findings in the reviewed commit, a2551fd.
Validated locally: all 20 simple-agent tests passed; Ruff lint and formatting checks passed. I also confirmed the new regression test fails against the original implementation. All required GitHub checks pass.
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36616448497 |
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.
Summary
Compatibility
The model server response now reaches
/verifywith its original JSON field names. The previous path re-dumped the response with Python field names, which turned a structured-outputtext.format.schemaintoschema_, and the verify endpoint rejected that with HTTP 422. Structured-output (json_schema) rollouts now verify correctly. A new test covers this case and checks that the verify request model accepts the payload.Performance
An in-process benchmark alternated the previous
dump -> validate -> dumppath with the newdump -> mergepath over nine repeats. Payload construction fell from 58.775 to 2.740 microseconds for a small response and from 6.985 milliseconds to 2.767 microseconds for a synthetic response containing 256 output messages. These numbers isolate verify-payload construction; HTTP encoding, transport, and resources-server validation remain unchanged.Test plan
uv run --extra dev pytest -q responses_api_agents/simple_agent/tests/test_app.pyCloses #3011.
Parent roadmap: #2998.