Skip to content

docs(inference): document nemoclaw inference get how-to#3431

Merged
cv merged 2 commits into
NVIDIA:mainfrom
latenighthackathon:docs/inference-get-command
May 16, 2026
Merged

docs(inference): document nemoclaw inference get how-to#3431
cv merged 2 commits into
NVIDIA:mainfrom
latenighthackathon:docs/inference-get-command

Conversation

@latenighthackathon

@latenighthackathon latenighthackathon commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Expand the existing "Verify the Active Model" section in docs/inference/switch-inference-providers.md to fully document nemoclaw inference get. The command landed in #3424 with a one-line entry in docs/reference/commands.md, and the inference how-to page picked it up at a minimum level (command + --json flag only). This change adds the output shape, the JSON shape, and the unconfigured-route error so users have a documented inverse to nemoclaw inference set on the same page.

Problem

After running nemoclaw inference set --provider X --model Y, the inference how-to page tells users to run nemoclaw inference get and nemoclaw inference get --json but does not show what either prints. Users either have to run the command themselves to find out what to expect, or rely on nemoclaw status diffs to confirm the route changed. The unconfigured-route case (gateway has no registered inference route) was not mentioned at all, so users hitting that error had no docs hint at what state caused it or how to recover.

Changes

  • docs/inference/switch-inference-providers.md: rework the existing "Verify the Active Model" H2 to add (1) human-readable output (Provider: <name> / Model: <id>), (2) JSON output body, and (3) the non-zero exit + OpenShell inference route is not configured. error string with a pointer to nemoclaw onboard. Section title, position, and the trailing nemoclaw <name> status cross-reference are preserved.

The new content uses the verified output format from src/lib/actions/inference-get.ts and the verified error message.

Test plan

  • npx prek run --files docs/inference/switch-inference-providers.md passes (gitleaks, markdownlint, docs-to-skills dry-run, skills YAML)
  • commitlint passes
  • make docs (no Sphinx in container; rendered preview will appear via NemoClaw's docs build job)

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Signed-off-by: latenighthackathon latenighthackathon@users.noreply.github.com

Summary by CodeRabbit

  • Documentation
    • Updated instructions for viewing the active inference provider and model using the nemoclaw inference get command, including a --json machine-readable example.
    • Clarified behavior when no route is configured (command exits non-zero with "OpenShell inference route is not configured.") and added guidance to run nemoclaw onboard and verify state before/after switching routes.

Review Change Stack

@copy-pr-bot

copy-pr-bot Bot commented May 13, 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.

@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 7e9fc938-b3d9-43d2-9cd8-d1b53440deb0

📥 Commits

Reviewing files that changed from the base of the PR and between 9d02199 and ee3c9d0.

📒 Files selected for processing (1)
  • docs/inference/switch-inference-providers.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/inference/switch-inference-providers.md

📝 Walkthrough

Walkthrough

Updates documentation to replace the previous "confirm live gateway route" instructions with a "Verify the Active Model" section that shows how to run nemoclaw inference get, includes a --json example, and documents the non-zero exit message and remediation via nemoclaw onboard when no route is configured.

Changes

Active Inference Configuration Documentation

Layer / File(s) Summary
Show Active Inference Configuration
docs/inference/switch-inference-providers.md
Replaces prior confirmation steps with a "Verify the Active Model" subsection; adds nemoclaw inference get usage, human-readable and --json output examples, documents non-zero exit (OpenShell inference route is not configured.) when no route exists, and instructs to run nemoclaw onboard to configure the route.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • NVIDIA/NemoClaw#2823: Similar documentation edits to the "Verify the Active Model" section using nemoclaw inference get and onboarding guidance.

Suggested reviewers

  • miyoungc

Poem

🐰 I hopped through lines to show the way,
A command to check who’s on display,
nemoclaw inference get — clear and neat,
JSON or text to make it complete,
If empty, onboard — then dance, repeat! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly and specifically describes the main change: documenting the nemoclaw inference get command in the inference how-to documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
docs/inference/switch-inference-providers.md (1)

35-58: ⚡ Quick win

Consolidate duplicated verification guidance to prevent drift.

This new section overlaps with the existing ## Verify the Active Model section (Line 210 onward), which documents the same nemoclaw inference get / --json workflow. Please merge or cross-reference one location so command behavior and error guidance stay in sync over time.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/inference/switch-inference-providers.md` around lines 35 - 58, The new
"## Show the Active Inference Configuration" section duplicates the existing "##
Verify the Active Model" guidance for the `nemoclaw inference get` command
(including `--json` usage and the "OpenShell inference route is not configured."
error); consolidate by removing one copy and either merge the content under a
single canonical heading (preferably keep "Verify the Active Model") or replace
the new section with a short cross-reference to that canonical section, ensuring
the `nemoclaw inference get` example, `--json` output, and the exact error
message remain present and identical to avoid drift.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/inference/switch-inference-providers.md`:
- Around line 35-58: The new "## Show the Active Inference Configuration"
section duplicates the existing "## Verify the Active Model" guidance for the
`nemoclaw inference get` command (including `--json` usage and the "OpenShell
inference route is not configured." error); consolidate by removing one copy and
either merge the content under a single canonical heading (preferably keep
"Verify the Active Model") or replace the new section with a short
cross-reference to that canonical section, ensuring the `nemoclaw inference get`
example, `--json` output, and the exact error message remain present and
identical to avoid drift.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 915a917a-5fab-4211-8ad0-0a149a4f23e4

📥 Commits

Reviewing files that changed from the base of the PR and between 904ea58 and 54b9edb.

📒 Files selected for processing (1)
  • docs/inference/switch-inference-providers.md

@wscurran wscurran added documentation enhancement New capability or improvement request labels May 13, 2026
@wscurran

Copy link
Copy Markdown
Contributor

✨ Thanks for submitting this detailed PR to document the nemoclaw inference get command. This change aims to improve the documentation for NemoClaw's inference capabilities by providing a clear how-to section for users to verify the active inference configuration.


Related open PRs:

@wscurran wscurran added enhancement: inference and removed enhancement New capability or improvement request labels May 13, 2026
@latenighthackathon latenighthackathon force-pushed the docs/inference-get-command branch from 54b9edb to 9d02199 Compare May 14, 2026 02:02
Expand the existing Verify the Active Model section so the inference
get command is fully documented with example output (provider and
model), --json output (with example JSON body), and the non-zero exit
plus error string the command emits when the gateway has no inference
route. Frame the section around both use cases (verify after switch,
inspect the starting state before a switch) rather than verification
only, so the section serves the broader how-to the section header
already implies.

No content moves outside the existing section, no new section is
added; the surrounding nemoclaw <name> status reference is preserved.

Signed-off-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
@latenighthackathon latenighthackathon force-pushed the docs/inference-get-command branch from 9d02199 to ee3c9d0 Compare May 15, 2026 02:11
@cv cv enabled auto-merge (squash) May 16, 2026 21:23
@cv cv merged commit 1c7e52e into NVIDIA:main May 16, 2026
17 checks passed
@latenighthackathon latenighthackathon deleted the docs/inference-get-command branch May 18, 2026 05:10
@coderabbitai coderabbitai Bot mentioned this pull request May 18, 2026
12 tasks
@wscurran wscurran added area: inference Inference routing, serving, model selection, or outputs feature PR adds or expands user-visible functionality area: docs Documentation, examples, guides, or docs build and removed enhancement: inference labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: inference Inference routing, serving, model selection, or outputs feature PR adds or expands user-visible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants