Skip to content

feat: User agent simulation for multi-turn episodes #985

Description

@cwing-nvidia

User Problem

Environment authors want to evaluate and train agents in realistic multi-turn conversations with simulated users. Today, they lack clear guidance and infra on how to do this.

Desired User Experience

As an environment author, I can configure a simulated user and run multi-turn episodes through standard Gym workflows. I can inspect:

  • the assistant trajectory, including its observations, responses, and tool calls
  • the user-agent trajectory, including its observations, responses, and tool calls
  • an ordered episode trajectory interleaving both participants, tool results, state changes, and termination

Design Considerations

Possible implementation patterns include:

  • Coupled multi-turn agent: One agent orchestrates assistant and user turns and references a separate user model server. tau2_agent currently demonstrates this pattern.
  • Decoupled multi-agent orchestration: Assistant and user simulators use independently pluggable agent harnesses under a shared orchestration contract.

User feedback demonstrated interest in both patterns, but more uncertainty on how to implement the multi-agent pattern. The implementation should explicitly resolve:

  • Where turn orchestration lives.
  • How participants observe state changed by user actions.
  • How tools are exposed to the user simulator.
  • How termination and maximum-turn limits are represented.

The scope should also clarify the architecture for integration with NeMo User Sim and produce a shared artifact how to leverage shared infra and benefits from both code bases.

Activity

  1. self-assigned this
    on Apr 2, 2026
  2. changed the title [-]Reference multi-turn agent server with LLM user model[/-] [+]feat: reference multi-turn agent server with LLM user model[/+] on Apr 2, 2026
  3. ffrujeri commented on Apr 7, 2026

    @ffrujeri
    Contributor

    Could you add a proposal for the sequence diagram on responsibilities for the Agent Scaffolding on the different turns and different steps on the environment from the Agent side?
    Also what is the orchestration mechanism between the user_model and the agent side? Is the user_model responsible for only one message or more than one in each turn?

  4. ffrujeri commented on Apr 7, 2026

    @ffrujeri
    Contributor

    Also, this could be seen (depending on the use case) as a particular case of multi-agent scenario. I think your opened questions about tool calling from the user_model only make sense if we are actually talking about about a multi-agent scenario, isn't it? If we are still thinking about a single-agent and multi-turn, where we are really trying to simulate the conversation with a human, then maybe the tool calling doesn't make much sense correct?

    In the single-agent multi-turn the Agent Scaffolding doing the orchestration would be responsible to update the context of the conversation and the user_model doesn't have access necessarily to anything environment related

  5. removed their assignment
    on May 6, 2026
  6. changed the title [-]feat: reference multi-turn agent server with LLM user model[/-] [+]feat: reference user agent simulation[/+] on May 19, 2026
  7. changed the title [-]feat: reference user agent simulation[/-] [+]feat: reference user agent simulation for multi-turn sessions[/+] on Jul 21, 2026
  8. moved this from Dev WIP to Details Todo in NeMo Gym 0.6.0 - Sept 2on Jul 30, 2026
  9. moved this from Details Todo to Dev Todo in NeMo Gym 0.6.0 - Sept 2on Jul 30, 2026
  10. 1 remaining item

  11. moved this from Details Todo to Dev Todo in NeMo Gym 0.6.0 - Sept 2on Aug 24, 2026
  12. moved this from Dev WIP to Details Todo in NeMo Gym 0.7.0 - Oct 7on Aug 31, 2026
  13. changed the title [-]feat: reference user agent simulation for multi-turn sessions[/-] [+]feat: user agent simulation for multi-turn sessions[/+] on Aug 31, 2026
  14. changed the title [-]feat: user agent simulation for multi-turn sessions[/-] [+][feat] user agent simulation for multi-turn sessions[/+] on Aug 31, 2026
  15. removed their assignment
    on Sep 2, 2026
  16. changed the title [-][feat] user agent simulation for multi-turn sessions[/-] [+]feat: User agent simulation for multi-turn episodes[/+] on Sep 2, 2026
  17. moved this from Details Todo to Dev Todo in NeMo Gym 0.7.0 - Oct 7on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions