Why plan the NeMo Guardrails upgrade from 0.22 to 0.23 now
If your application is pinned to NeMo Guardrails 0.22, the first decision is to treat 0.23 as one hop on a longer path, not as the final destination. The current release is 0.25.0, published on 19 November 2026, and the previous release was 0.24.1. Moving to 0.23 is still the right first step for most teams because it is where the Pydantic 2 requirement lands, and that change touches every application that imports or extends NeMo Guardrails models. Before you change any version pin, confirm which Pydantic major version your application and its other dependencies use, since a Pydantic 1 pin in a shared service can block the upgrade regardless of how clean your own code is.
The rest of the 0.23 work is concentrated in three areas: the deprecated internal attributes on LLMRails, the new IORails options for tool calling, and the content capture options that change what gets logged. Inventory every place your code reads LLMRails internals, every custom action that depends on the old flow, and every configuration that would benefit from the new tool rails. Then check the 0.23 release notes on the NeMo Guardrails releases page for the exact list of deprecations and the Python version floor, because this page does not supply the 0.23 Python requirement. The 0.25.0 release requires Python 3.11, 3.12 or 3.13, so an interpreter that is acceptable for 0.23 may still need to change before 0.24 or 0.25.
Plan the upgrade as a sequence rather than a single jump. Record the 0.23 changes, test the application on 0.23, then budget separate work for the 0.24 and 0.25 hops, which carry their own changes to actions, server responses and the migration from LLMRails to Guardrails. Keep the 0.22 build reproducible until the 0.23 tests pass, so that a rollback is a version pin change rather than a rebuild. If your deployment depends on the NeMo Guardrails microservice, confirm its status first, because NVIDIA has sunset that microservice and the library upgrade path does not replace it.
Which 0.23 changes break Pydantic 1 pins and LLMRails code
This table lists the 0.23 changes most likely to break an existing deployment, with the impact of each and the action to take first. Read each row against your dependency lockfile, your custom actions and your logging configuration. The main takeaway is that the Pydantic requirement and the LLMRails attributes should be checked before any new feature is switched on, because they fail earliest.
| Change | Impact | Action needed |
|---|---|---|
| Pydantic 2 requirement | Applications or plugins pinned to Pydantic 1 can fail to resolve or import once NeMo Guardrails runs on Pydantic 2. | Check lockfiles and transitive pins in a clean environment, and confirm the minimum Pydantic version in the 0.23 release notes. |
| Deprecated internal LLMRails attributes | Custom actions, tests and monitoring code that read LLMRails internals may break or emit deprecation warnings. | Search for direct reads of LLMRails attributes, then confirm the exact deprecated names and replacements in the 0.23 release notes before renaming anything. |
| IORails tool calling option | Tool rails validate tool calls and results, a different control point from earlier execution rails that wrapped custom actions. | Map each tool to a tool rail or an execution rail, and confirm in the 0.23 documentation which rails run on IORails before enabling it. |
| Content capture options | Captured prompts and responses can land in logs, traces or storage, bringing personal data into scope for retention and access. | Keep capture off in production until a data handling review approves retention, access controls and redaction, and confirm option names in the 0.23 release notes. |
| LLMRails deprecation in 0.25.0 | The LLMRails class is deprecated in favor of Guardrails in 0.25.0, with removal planned no earlier than 0.27.0. | Plan the switch to the Guardrails entry point on a branch now, so the move happens on your schedule rather than under a removal deadline. |
| Regression coverage | Pydantic and rail changes surface only in code paths that your tests exercise. | Run unit tests, rail tests and a staging deployment on 0.23 before and after the upgrade, and keep the results as change evidence. |
How the upgrade decision path runs from 0.22 to 0.23
The path starts with an inventory of your Python version, the Pydantic version your application pins, and every custom action you run. If the application is pinned to Pydantic 1, the move to Pydantic 2 must be scheduled before the library upgrade. Next, search your code for LLMRails attribute access, then decide whether tool rails or content capture options are needed. The upgrade runs only in a test environment after those decisions. If tests fail, return to the recorded version lock and fix the blocking item before trying again.
Decision path from inventory through test upgrade to rollback or promotion.
What to back up and inventory before changing the version
Before moving from 0.22 to 0.23, the goal is to be able to return to the exact previous state within the same day. The five items below cover the files, the dependency set, the code that touches the library, the Pydantic usage and the baseline behavior you will compare against after the change.
Back up the configuration folder
Copy the whole configuration folder, including config.yml, every Colang file and any Python actions, into version control or an immutable archive tagged with the current release. Record the exact commit or checksum so you can restore the same files that ran in production. Keep a copy of any environment files or model entries referenced by the configuration, because a rollback that restores code but not configuration will not reproduce the previous behavior.
Pin the exact dependency set
Export the full resolved dependency list from the running environment or lockfile, including nemoguardrails, Pydantic, LangChain packages if present and the Python interpreter version. Store it next to the configuration backup. Confirm the interpreter still matches the requirement for the target release before you begin, since rollback depends on being able to reinstall the same versions.
Inventory custom actions and library imports
List every custom action, helper module and service that imports from nemoguardrails, and note which of them call LLMRails directly or read its attributes. These are the places where the 0.23 changes to deprecated internal attributes and the new tool calling options can break a working integration. Mark each item as tested, untested or unknown so the upgrade plan can assign owners.
Map Pydantic usage across packages
Search the application and every internal package for Pydantic imports, model definitions and validators, and record which Pydantic major version each package declares. A service pinned to Pydantic 1 cannot share models or validators with a Pydantic 2 library without changes. Check transitive dependencies too, because a shared package may pull in Pydantic 1 without your team declaring it directly.
Build the test environment from the same artifact
Create the test environment from the same container image or lockfile that production runs, not from a fresh install with loose version ranges. Load the backed-up configuration into it and confirm the server starts and answers a known request before any change is made. A test environment built from a different artifact will hide the dependency conflicts that the upgrade is most likely to surface.
Record baseline rail behavior
Run a fixed set of prompts through the current version and record which input, output, dialog and tool rails block, pass or modify each one, along with the response text and timing where you need it. Store the results as a file with the release and configuration hash. After the upgrade, rerun the same set and compare, because a rail that silently stops firing is harder to spot than one that errors.
How the upgrade differs for Python API, server and gateway deployments
Applications that import NeMo Guardrails and call it directly carry the whole upgrade in their own dependency tree. The Pydantic 2 requirement shows up at install time, so the first failure often appears in the dependency resolver or in application code that shares an environment with Pydantic 1 packages. Confirm the exact Pydantic range in the 0.23 release notes before you pin anything.
- Dependency pins: Remove Pydantic 1 pins from requirements files, lock files and constraint files, and check transitive packages that still expect Pydantic 1.
- LLMRails references: Search for direct
LLMRailsconstruction and attribute access. The deprecation path is described in the NeMo Guardrails releases notes, and 0.25.0 moves the entry point toGuardrails. - Tool calling and IORails: Rebuild any code that depends on tool calling or content capture options, and test which rails now run on IORails.
- Regression tests: Run unit tests, Colang flow tests and a set of known allowed and blocked prompts against the new version.
Check that your Python interpreter is supported by the target release, since 0.25.0 requires Python 3.11, 3.12 or 3.13.
A guardrails server loads configurations from a folder and exposes an HTTP API, and the project's Dockerfile builds a server image. An upgrade here changes two artifacts at once: the Python environment baked into the image and the configuration folder copied or mounted into it. Treat the image as the unit of release, and keep the configuration folder under version control alongside it.
- Image rebuild: Rebuild from the Dockerfile against the target version so that Pydantic 2 and the updated dependency set are built into the image.
- Configuration folder: Retest
config.yml, Colang files and Python actions against the new image, because flow behavior and action loading can depend on the version. - HTTP callers: Retest every client of the HTTP API, including health checks and any code that reads specific response fields.
- Rollback path: Keep the previous image tag available so a failed rollout can be reverted without a rebuild.
Compare the endpoint list and request schemas in the target release notes with the ones your clients use before changing any client code.
Teams running NeMo Guardrails behind NVIDIA's NeMo Helix control plane do not manage the guardrail runtime the same way as direct users. NeMo Helix documents NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints, so the plugin version Helix ships controls what you can upgrade. Start with a support question before any engineering work.
- Plugin version: Confirm with NVIDIA which NeMo Guardrails version the Helix plugin runs and whether a 0.23 build can be selected for your deployment. The NeMo Helix guardrail model documentation describes the gateway role.
- Guardrail configurations: Retest each configuration applied to model endpoints, including tool rails, because gateway traffic can carry tool calls from applications your team does not own.
- Microservice container: If you run the NeMo Guardrails microservice container, note that NVIDIA's NGC catalog listing states that NeMo microservices was sunset as of October 1, 2026, with no new releases or support. Confirm next steps with your NVIDIA account team before planning a 0.23 move.
- Staged routing: Redeploy gateway routes and policies to a staging gateway first, then compare latency and block rates with production.
Ask your NVIDIA account team to confirm in writing which artifact, version and support terms apply to your deployment before you schedule any change.
How to run the 0.22 to 0.23 upgrade with rollback points
This sequence moves a NeMo Guardrails application from 0.22 to 0.23 in controlled stages, so each change is verified in a test environment before staging and production, and production has a defined image and lockfile to return to.
Freeze and back up the current state
Pause configuration and dependency changes for the application, then record the running version of NeMo Guardrails, the Python version, the full lockfile, the container image digest and the configuration folder (config.yml, Colang files and Python actions) in version control or an artifact store. Keep a copy of the baseline outputs from a fixed set of guarded requests. This step is done when someone other than the author can restore the current image and lockfile from the recorded references.
Install 0.23 with a pinned version in test
In an isolated test environment, install the exact 0.23 release with a pinned version in the lockfile rather than a range, and confirm the interpreter meets the Python requirement for that release by checking the 0.23 README and package metadata. Build a test image from the same Dockerfile pattern you use in production if you run the server. The check that closes this step is a clean install and an application start with no import errors.
Resolve Pydantic 2 conflicts
Remove or update any pins that keep Pydantic at version 1, including transitive packages from LangChain, custom actions and internal libraries. Run dependency resolution and read the resolver output line by line, since a conflict can hide inside a plugin your team does not directly maintain. Update custom models and validators to Pydantic 2 APIs where your code uses them. This step passes when the lockfile resolves with a single Pydantic major version and the test environment starts.
Update LLMRails references
Search the application, custom actions and tests for direct uses of LLMRails and any internal attributes the 0.23 release marks as deprecated. Confirm each replacement in the 0.23 documentation and migration notes before editing, since exact names and entry points must come from the vendor documentation. Keep these edits in a separate commit so they can be reverted independently. The check is a search that returns no deprecated references in code you own, with any remaining usages recorded as known exceptions.
Run configuration and action tests
Run the existing unit and integration suite for configurations, Colang flows, Python actions and the server endpoints against the 0.23 build. Add tests for any tool calling path your application uses, because the tool rail options are new in this release and need explicit coverage. Confirm exact config keys for tool rails and content capture in the 0.23 documentation before writing those tests. The step passes when all tests pass and no warnings about deprecated behavior are left unexplained.
Compare guarded requests against the baseline
Send the same sample of guarded requests to the 0.22 baseline and the 0.23 build, including inputs that should be blocked, allowed and handled by dialog or tool rails. Compare the decisions, the returned messages and the rail outcomes, and investigate every difference. Document any intended change, such as a behavior affected by the tool rail or content capture settings, with its reason. The check is an agreed list of differences that the owning team has approved.
Promote to staging, then production
Deploy the verified build to staging with production-like configuration, identity and network settings, then run the test suite and the comparison sample again against the staged endpoint. After staging sign-off, deploy to production using a rollout that keeps the previous image and lockfile available. Define in advance the rollback trigger, such as failed guarded-request checks or server errors, and the command or pipeline step that restores the previous image and lockfile. The step closes when production checks pass and the rollback procedure has been confirmed to restore the prior version in a non-production environment.
How IORails tool calling and content capture change what you test
The 0.23 release adds two behaviors that a test suite written for 0.22 may not exercise: the IORails tool calling option and the content capture settings. Enabling either one changes what passes through the rails and what is written to disk, so the existing tests can pass while the new paths go unchecked. Before you enable anything, add cases that cover each path. Confirm the default values and the exact configuration keys for both options in the 0.23 documentation, because the names and defaults are the first things to verify and should not be copied from a blog post or an older config file.
For tool calling, test the inputs and outputs of each tool call as they cross the rails. Send a request that should produce a tool call, then check that the arguments the model proposes are validated before the action runs, and that the tool result is checked before the model sees it again. Include a call with malformed arguments, a call to a tool the configuration does not list, and a result containing text that looks like an instruction. For each case, record which rail fired, whether the tool executed, and what the application received. Blocked tool calls need particular attention: confirm whether the application gets an exception, an empty result, a refusal message or a structured outcome, and make sure its error handling treats each of those correctly.
For content capture, test what is written to logs and traces after the setting is enabled. Run a known test prompt that contains a recognizable marker, then search every log sink, trace backend and metrics label for that marker. Verify who can read each sink by checking the access groups on the log platform, not only the application's own permissions. If user prompts or model responses now land in logs, decide on retention, redaction and access before the change reaches production, and document the decision as part of your data handling controls. Turning on a new option is a separate decision from upgrading the library version, so keep the upgrade and the option change in different change requests with their own tests and rollback steps.
What makes a NeMo Guardrails upgrade take longer
This table lists the factors that stretch a 0.22 to 0.23 upgrade and explains why each one matters. Read each row against your own environment to see which drivers apply and how to scope them before work starts. The main takeaway is that the Pydantic 2 requirement spreads beyond NeMo Guardrails itself, so dependency and test scope usually matter more than the library change alone.
| Driver | Effect on effort | How to scope it |
|---|---|---|
| Number and complexity of custom actions | Each Python action that passes Pydantic models, or relies on pydantic-specific behavior, needs review and tests. Actions with many parameters or nested models take longer to verify. | Inventory every action file, note which ones import Pydantic or serialize models, and tag them by complexity before estimating. |
| Use of LLMRails attributes in application code | Code that reads internal LLMRails attributes now deprecated in 0.23 must be found and rewritten. Attributes reached indirectly through helper modules are easy to miss. | Search the codebase and vendored code for LLMRails attribute access, and list each call site with its owner. |
| Pydantic 1 pins in other packages in the same environment | Pydantic 2 is required, so any other package pinned to Pydantic 1 in the same environment can block installation or break at runtime. Resolving these can take longer than the NeMo Guardrails change itself. | Run a dependency resolution check against the target environment and list every package that constrains the pydantic version. |
| Number of configurations and Colang files | More configurations mean more rails to re-run and more outputs to compare before and after. Colang files that define flows touching models or actions widen the regression surface. | Count configurations and Colang files per deployment, and mark those that use tool or action flows. |
| Whether tool calling or content capture is switched on | Enabling tool rails or content capture adds new behavior to validate, including tool call handling and what is recorded. Applications that keep these off have a smaller change surface. | Confirm the exact options each configuration sets and decide whether they are being enabled for the first time or only kept as they are. |
| Test coverage of rails behavior | Weak coverage means behavior changes are found in production. Teams with existing tests for blocked inputs, outputs and dialog paths can confirm the upgrade faster. | Measure which rails and flows have automated tests, and plan to add tests for gaps before the upgrade branch is cut. |
| Server or gateway deployment with separate images to rebuild | When the guardrails server or a gateway runs in its own container, each image must be rebuilt, tested and rolled out in order. Multiple images and environments multiply the work. | List every image and environment that loads NeMo Guardrails, and set a rollout order for staging and production. |
| Access to logs or data stores that content capture affects | If content capture writes prompts or responses to logs or stores, reviewers must confirm data handling, retention and access rules. Those reviews add time outside the engineering team. | Identify which log sinks and data stores receive captured content, and involve the owners of those systems early. |
What buyers ask before paying for a NeMo Guardrails upgrade
What drives the cost of a NeMo Guardrails 0.23 upgrade?
The main cost driver is how much of your application depends on the parts of NeMo Guardrails that changed, not the version number alone. Most of the work is one-time: auditing Pydantic 1 usage, updating pinned dependencies, replacing deprecated internal LLMRails attribute access, testing tool-calling rails and rebuilding server images. Recurring costs come from your own infrastructure and from any decision to keep following later releases. Cost rises with the number of custom actions, the size of the test suite, the number of environments that must be revalidated, and whether tool calling is enabled for the first time. A quote should list each of these as a separate line, name who performs each task, and state what the client supplies.
How long does a NeMo Guardrails 0.23 upgrade take?
The schedule depends on the factors that set the effort, and no duration is fixed in advance. The largest factors are the number of applications and configurations on the server or library, the number of custom actions and LLM providers that touch Pydantic models, how complete the existing tests are, and how many environments need sign-off. Access delays, change-freeze windows and availability of application owners often add more time than the code changes. Ask for a schedule built from these factors, with the assumptions written out, and confirm the 0.23 release notes for any behavior that affects your configuration before you accept it.
What must our team provide for an upgrade engagement?
The engagement moves faster when the client supplies a complete starting point. Typical inputs include:
- Test environments that match production closely enough to run the rails, including model endpoints or stand-ins for them.
- The current configuration repository, including
config.yml, Colang files and any prompts. - The current dependency lockfile or requirements file, and the Python version in use.
- Named owners for each custom action, custom LLM provider and tool integration, who can answer behavior questions and approve changes.
- Representative test traffic, including blocked and allowed cases, so behavior can be compared before and after the upgrade.
- A change window and a rollback owner for each environment.
Can our own engineers upgrade to NeMo Guardrails 0.23 without a partner?
Yes, a capable internal team can do the upgrade alone if it has the right skills and enough time. Engineers need working knowledge of Pydantic 1 and Pydantic 2, including field definitions, validators and serialization calls in code they own. They also need Python packaging skills: resolving dependencies, pinning constraints, managing virtual environments and rebuilding container images. Familiarity with Colang and with the NeMo Guardrails configuration model helps when a rail behaves differently after the change. Teams that lack regression tests should plan to write them first, because without them it is hard to show that behavior stayed the same. Confirm the Python version requirement for 0.23 in its release metadata before you start.
Should the 0.23 upgrade be combined with the later hops to 0.24 and 0.25?
In most cases, keep the hops separate. Each release changes different parts of the stack: 0.23 introduces the Pydantic 2 requirement, deprecated internal attributes and new tool and content capture options, while 0.24 changes custom rail outcomes and server behavior. Taking several hops at once makes it harder to tell which change caused a failure. NVIDIA's 0.25 release deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, and 0.25.0 requires Python 3.11, 3.12 or 3.13. A staged plan lets each step pass its tests before the next begins. Combining hops can make sense only when the application is small and the regression suite covers every rail.
What should a quote for a NeMo Guardrails upgrade include?
A useful quote is a written scope that can be checked against the work. It should cover:
- The applications, configurations and servers in scope, and the versions being moved from and to.
- An inventory of custom actions, LLM providers, tool integrations and deprecated attribute uses.
- Dependency, Python version and container image changes.
- The regression and tool-calling test plan, including who runs it and which results count as passing.
- The environments covered and the sign-off steps for each.
- A rollback plan, with the steps and owner.
- The deliverables, such as updated configuration, a lockfile, test results and change notes.
- Assumptions and client responsibilities.
DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
Is there ongoing cost after the NeMo Guardrails upgrade is done?
Yes, but the recurring part is usually smaller than the upgrade itself and depends on your choices. The client pays for the infrastructure that runs the server or library, the model endpoints and any safety models it hosts, and the staff who watch them. Recurring engineering work comes from following future releases, updating dependencies and rerunning tests after each change. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, so the client can choose whether to keep that work in-house or with a partner. Ask any provider to separate one-time upgrade fees from recurring retainer terms in the quote.
How DeployOpen scopes, delivers and supports the upgrade
DeployOpen approaches the NeMo Guardrails 0.22 to 0.23 move as a written, fixed-scope piece of work: first the application's Pydantic and tool rail exposure, then a tested change set, then documentation your team can run. The work happens in the infrastructure you control, with your own configurations and test cases as the acceptance baseline.
How we scope
- Inventory which packages in your environment pin Pydantic 1 and which services import those models directly
- Map every use of deprecated LLMRails attributes in your code and configuration files
- Record in writing which tool calling and content capture options you will adopt, and which you will leave off
- Agree deliverables, timelines and acceptance tests in writing before any change is made
How we build
- Create a branch with a pinned Python version from the supported list for the target release, then reproduce your current behavior
- Move Pydantic dependencies and model definitions to Pydantic 2 and rerun your existing unit tests against them
- Replace deprecated internal attribute access with the supported interfaces and confirm each change against the release notes
- Enable IORails tool rails and content capture only in a staging environment, with logging reviewed before any production use
How we hand over
- Deliver a dated change log listing each dependency, configuration key and code path that was modified
- Provide a regression test report comparing blocked and allowed outcomes before and after the upgrade
- Document a rollback procedure that restores the previous version, configuration and pinned dependencies
- Run a walkthrough with your engineers so they can repeat the steps on their own next upgrade
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to track later releases
- Review the migration guide for each subsequent release before planning its upgrade work with you
- Keep retainer scope and response expectations in writing, so your security and platform teams know what is covered
- Confirm with your account contact which support terms apply to your environment before signing any agreement

