NeMo Relay maintains some third-party integrations as patch sets applied to local
upstream checkouts under third_party/. The public wrapper commands stay at
the scripts/ root, while their implementations live under
scripts/third-party/.
The tracked upstream sources live in sources.lock. The NeMo Relay
patches live under ../patches/.
Integration-specific setup, usage, and validation notes live next to this file:
Bootstrap the tracked upstream checkouts from the manifest:
./scripts/bootstrap-third-party.shApply the NeMo Relay integration patches:
./scripts/apply-patches.shCheck whether the patches still apply cleanly without modifying your working tree:
./scripts/apply-patches.sh --check./scripts/bootstrap-third-party.shis the stable public wrapper forscripts/third-party/bootstrap.sh. It clones each upstream repository listed inthird_party/sources.lockand checks out the pinned commit in a detached HEAD state../scripts/apply-patches.shis the stable public wrapper forscripts/third-party/apply-patches.sh. It applies the patch files frompatches/<name>/to the corresponding local checkout../scripts/generate-patches.shis the stable public wrapper forscripts/third-party/generate-patches.sh. It regenerates the patch file for any third-party checkout with local changes.
apply-patches.sh refuses to apply patches on top of a dirty checkout. Commit,
stash, or discard local changes first, or use --check to validate patch
applicability against a clean detached checkout.
If you want to work on one integration manually instead of bootstrapping all of them:
- Find the upstream
url,path, and pinnedcommitin sources.lock. - Clone the upstream repository into the tracked path under
third_party/. - Check out the pinned commit in detached HEAD mode.
- Apply the patch files from the matching directory under
../patches/.
Example for langgraph:
git clone https://github.com/langchain-ai/langgraph.git third_party/langgraph
git -C third_party/langgraph checkout --detach 5c9c1d598d65411317e0957a42cc3af681d395f8
git -C third_party/langgraph apply ../patches/langgraph/0001-add-nemo-relay-integration.patchAfter editing a local third-party checkout, regenerate the patch files with:
./scripts/generate-patches.shThis writes updated patch files under patches/<name>/ and verifies that each
generated patch still applies to a clean detached checkout of the local repo
HEAD.