Skip to content

Add multi-step tool-calling data generation example - #778

Merged
bxyu-nvidia merged 29 commits into
NVIDIA-NeMo:mainfrom
shashank3959:dev/multistep-toolcalling-datagen-tutorial
Mar 10, 2026
Merged

bxyu-nvidia merged 29 commits into
NVIDIA-NeMo:mainfrom
shashank3959:dev/multistep-toolcalling-datagen-tutorial

Conversation

@shashank3959

Copy link
Copy Markdown
Contributor

Add multi-step tool-calling data generation example

Add a Jupyter notebook example showing how to generate synthetic
training data for the Workplace Assistant environment using NVIDIA
Data Designer, with dual-level LLM judge filtering and NeMo Gym
JSONL export.

  • Add examples/multistep_toolcalling_datagen/ with notebook, utils, and
    tool schema JSONs
  • Add docs landing page and tutorials index card
  • Add cross-links from ROLLOUT_GUIDE, Workplace Assistant README, and
    ecosystem docs

@copy-pr-bot

copy-pr-bot Bot commented Feb 27, 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.

@shashank3959
shashank3959 force-pushed the dev/multistep-toolcalling-datagen-tutorial branch from 0197b65 to 78b5da3 Compare February 27, 2026 01:03
Comment thread ROLLOUT_GUIDE.md Resolved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this page now per our discussion on consistent format for organizing the environment tutorials

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, I will rebase on top of the other PR #711 which removes it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebased

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this under environment-tutorials, and re-org it as part of a multi-step environment tutorial (per consistent environment tutorial structure plan)

@shashank3959 shashank3959 Mar 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it under real-world environment page in environment tutorials


---

## What's Next?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just make it simpler? whats next would be to use this environment for training, which we have the nemo RL workplace assistant training tutorial

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread docs/index.md Resolved

@arti4nvj arti4nvj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy to follow along with. Only problem was with the API key. It would also be useful to describe in the .json, when to define data_schema columns and where it's used.
For example in customer_relationship_manager.json, for the tool customer_relationship_manager_search_customers, there is a property called "page" but it isn't present in data_schema. But some of the tool properties are part of these columns so it was confusing to me if some fields just have the same names or if it corresponds to the data_schema columns.

}
],
"source": [
"preview = data_designer.preview(pipeline, num_records=2)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to print the model endpoint usage of these 2 rows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no clear way in that API to do that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does print the progress automatically though, does that help?

shashank3959 and others added 18 commits March 9, 2026 23:09
- Explains Resource Server architecture and terminology
- Includes 4 complete code examples (simple, multi-step, stateful, production)
- Documents configuration YAML format and training data JSONL structure
- Covers the RL training loop and server infrastructure

Signed-off-by: Shashank Verma <[email protected]>
Align tutorial examples and infrastructure details with current source behavior, and mark non-verbatim code blocks consistently as simplified excerpts.

Signed-off-by: Shashank Verma <[email protected]>
Break the monolithic nemo-gym-environment-guide into smaller sections

Signed-off-by: Shashank Verma <[email protected]>
Replace misleading "distributed across machines" and "horizontal
scaling" language with accurate description: modular multi-server
design for high-throughput parallel rollout collection.

Signed-off-by: Shashank Verma <[email protected]>
Rewrite environment-tutorials/index.md as the primary guide covering
Task Preparation, Environment Design, and Model Training with an inline
single-step weather example (absorbing creating-training-environment.md).

Move multi-step, stateful, and real-world tutorials from
training-tutorials/nemo-gym-environment-guide/ into environment-tutorials/
as progressive exercises with fixes (error handling, guard clauses,
route order warnings, callouts for black-box functions).

Update all cross-references.

Signed-off-by: Shashank Verma <[email protected]>
Add back Model Server and Resources Server explanations, fix
simple_agent description to say multi-step instead of single-turn,
and remove unsubstantiated "most users" claim. Remove PNG from repo.

Signed-off-by: Shashank Verma <[email protected]>
- Fix source-aligned labels in multi-step and stateful tutorials
- Clarify follow-on tutorials focus on Resources Server implementation
- Add parallel_tool_calls tip for multi-step environments
- Note preferred seed_session pattern vs live implementation

Signed-off-by: Shashank Verma <[email protected]>
- index.md is now a clean landing page with environment properties,
  tutorial cards, and navigation
- single-step-environment.md contains the full weather assistant
  walkthrough (scaffolding through training)
- Add documentation, summary, advanced verification patterns, and
  troubleshooting sections to single-step tutorial
- Update toctree and cross-references across all tutorial files

Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Reorder sections so readers see the tutorial grid cards before
the environment properties tables, reducing the chance of missing them.

Signed-off-by: Shashank Verma <[email protected]>
- Removes redundant diagram at the top
- Tightens wording in agent server and resources server sections

Signed-off-by: Shashank Verma <[email protected]>
@shashank3959
shashank3959 force-pushed the dev/multistep-toolcalling-datagen-tutorial branch from c5d760b to d805186 Compare March 10, 2026 07:03
Add a Jupyter notebook example showing how to generate synthetic
training data for the Workplace Assistant environment using NVIDIA
Data Designer, with dual-level LLM judge filtering and NeMo Gym
JSONL export.

- Add examples/multistep_toolcalling_datagen/ with notebook, utils, and
  tool schema JSONs
- Add docs landing page and tutorials index card
- Add cross-links from ROLLOUT_GUIDE, Workplace Assistant README, and
  ecosystem docs

Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Split real-world-environment.md into a landing page with two sub-pages:
- real-world-data-generation.md (NeMo Data Designer notebook tutorial)
- real-world-implementation.md (resources server implementation details)

Remove standalone training-tutorials/multistep-toolcalling-datagen.md
and its references from toctrees.

Signed-off-by: Shashank Verma <[email protected]>
@shashank3959
shashank3959 force-pushed the dev/multistep-toolcalling-datagen-tutorial branch from d805186 to ae38e45 Compare March 10, 2026 07:38
Updates the endpoint to integrate.api.nvidia.com.
Minor docs improvements

Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Resolve conflict in real-world-environment.md by keeping the landing-page
structure (grid cards linking to data-generation and implementation sub-pages),
since the implementation content now lives in real-world-implementation.md.

Signed-off-by: Shashank Verma <[email protected]>
@bxyu-nvidia
bxyu-nvidia merged commit 9d1538f into NVIDIA-NeMo:main Mar 10, 2026
5 checks passed
bxyu-nvidia pushed a commit that referenced this pull request Mar 10, 2026
Add multi-step tool-calling data generation example

Add a Jupyter notebook example showing how to generate synthetic
training data for the Workplace Assistant environment using NVIDIA
Data Designer, with dual-level LLM judge filtering and NeMo Gym
JSONL export.

- Add examples/multistep_toolcalling_datagen/ with notebook, utils, and
  tool schema JSONs
- Add docs landing page and tutorials index card
- Add cross-links from ROLLOUT_GUIDE, Workplace Assistant README, and
  ecosystem docs

---------

Signed-off-by: Shashank Verma <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
raveedturing pushed a commit to turing-rlgym/Gym that referenced this pull request Mar 18, 2026
Add multi-step tool-calling data generation example

Add a Jupyter notebook example showing how to generate synthetic
training data for the Workplace Assistant environment using NVIDIA
Data Designer, with dual-level LLM judge filtering and NeMo Gym
JSONL export.

- Add examples/multistep_toolcalling_datagen/ with notebook, utils, and
  tool schema JSONs
- Add docs landing page and tutorials index card
- Add cross-links from ROLLOUT_GUIDE, Workplace Assistant README, and
  ecosystem docs

---------

Signed-off-by: Shashank Verma <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
mahanfathi pushed a commit that referenced this pull request Mar 24, 2026
Add multi-step tool-calling data generation example

Add a Jupyter notebook example showing how to generate synthetic
training data for the Workplace Assistant environment using NVIDIA
Data Designer, with dual-level LLM judge filtering and NeMo Gym
JSONL export.

- Add examples/multistep_toolcalling_datagen/ with notebook, utils, and
  tool schema JSONs
- Add docs landing page and tutorials index card
- Add cross-links from ROLLOUT_GUIDE, Workplace Assistant README, and
  ecosystem docs

---------

Signed-off-by: Shashank Verma <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Demonstrate how to use NeMo Data Designer to scale task curation for environments

4 participants