Skip to content

Object-oriented agents in Gym #2096

Closed
4 of 4 issues completed
Closed

Description

@sephmard

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:

  1. Implement or select a Python agent class in their own package.
  2. Configure its factory/class, entry method, Gym model server, and resources server.
  3. Run it through the existing gym eval run workflow.
  4. Receive standard Gym rewards, trajectories, failure records, and aggregate metrics.
  5. 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 /run contract.
  • 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_agents implementations 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

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

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. changed the title [-][agent/harness] placeholder[/-] [+]agent OO placeholder[/+] on Jul 25, 2026
  2. changed the title [-]agent OO placeholder[/-] [+]feat: agent OO placeholder[/+] on Jul 25, 2026
  3. moved this from Dev Todo to Details Todo in NeMo Gym 0.6.0 - Sept 2on Jul 30, 2026
  4. moved this from Details Todo to Dev Todo in NeMo Gym 0.6.0 - Sept 2on Jul 30, 2026
  5. changed the title [-]feat: agent OO placeholder[/-] [+]feat: OO agents in Gym[/+] on Aug 18, 2026
  6. moved this from Dev Todo to Review Todo in NeMo Gym 0.6.0 - Sept 2on Aug 25, 2026
  7. added
    feature
    area:agent
    complexity:high
    on Sep 17, 2026
  8. changed the title [-]feat: OO agents in Gym[/-] [+]Object-oriented agents in Gym[/+] on Sep 17, 2026
  9. removed
    complexity:high
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:agentfeature

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions