Repository navigation
Description
Goal
Make Python object-oriented agent implementations—starting with NVIDIA Object-Oriented Agents (NOOA)—pluggable into NeMo Gym for evaluation and post-training without requiring agent authors to implement Gym-specific FastAPI routes, cookie handling, or ServerClient plumbing.
Today, Gym agents are HTTP servers built on SimpleResponsesAPIAgent. This work introduces a transport-independent agent contract, preserves the existing server-based rollout architecture through a generic adapter, and validates the design with a production NOOA integration.
Desired user experience
A user should be able to:
- Implement or select a Python agent class in their own package.
- Configure its factory/class, entry method, Gym model server, and resources server.
- Run it through the existing
gym eval runworkflow. - Receive standard Gym rewards, trajectories, failure records, and aggregate metrics.
- Route policy inference through Gym's Model Server so training-required token IDs, logprobs, and rollout correlation remain available.
Scope
- Define typed, async task/runtime/result contracts independent of FastAPI and Gym's server lifecycle.
- Add a generic agent-server adapter that hosts those objects behind Gym's existing
/runcontract. - Preserve resource-session isolation, verification, failure routing, observability, aggregation, and concurrency behavior.
- Add NOOA as the first concrete integration and validate evaluation plus training-grade rollout output.
- Keep existing
responses_api_agentsimplementations source-compatible.
A fully in-process rollout transport is not required for the initial implementation. The first milestone may continue using Gym's existing HTTP dispatch and server lifecycle while removing that complexity from agent authors.
Subtasks
- Configure and map Gym dataset rows to NOOA agents #2566
- Embed a Gym-backed NOOA runtime #2567
- Capture NOOA rollouts and trajectories as native Gym objects #2568
- Implement the NOOA rollout lifecycle #3451
- Add the NOOA capability fixture and documentation #3452
Success criteria
- An agent author can integrate a Python object without writing FastAPI endpoints.
- A minimal NOOA agent completes and receives reward on a Gym environment.
- Concurrent rollouts remain state-isolated.
- Model calls and trajectories are correlated to the correct rollout.
- With
return_token_id_information: true, the rollout contains the token information required by the selected post-training pipeline. - Existing server-based agents and rollout artifacts continue to work unchanged.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][agent/harness] placeholder[/-][+]agent OO placeholder[/+][-]agent OO placeholder[/-][+]feat: agent OO placeholder[/+][-]feat: agent OO placeholder[/-][+]feat: OO agents in Gym[/+][-]feat: OO agents in Gym[/-][+]Object-oriented agents in Gym[/+]