Colang 1.0 vs Colang 2.0 for NeMo Guardrails projects

Colang 1.0 is the default in NeMo Guardrails and the only version IORails accepts, while 2.0 is supported with its own tooling and migration path. This page helps you choose before you write the first flow.

On this page

Which Colang version should a new NeMo Guardrails project start on?

Start on Colang 1.0 unless you have a specific reason not to. Colang 1.0 is the default in NeMo Guardrails, and it is the version the IORails engine accepts. Colang 2.0 is also supported, but because its status and feature set can change between releases, confirm its current state in the NeMo Guardrails documentation before you commit flows to it. Your team is making this choice before writing any flows, so the decision should be recorded in the project's configuration plan alongside the config.yml file and any Python actions.

Colang is the language for defining user intents, bot responses and dialog flows, so the version you pick determines how those flows are written and which engine can run them. Check two things before you write a single flow. First, confirm whether your latency plan depends on IORails, since a Colang 2.0 project cannot use that engine under the constraints described in the supplied facts. Second, confirm which tooling, examples and runtime behavior your target NeMo Guardrails release provides for the version you choose. The release you install should be pinned, and the Python version it requires (3.11, 3.12 or 3.13 for the current 0.25.0 release) should be set in your build image.

If your team starts on Colang 1.0 and later needs 2.x features, NVIDIA documents a migration path using the nemoguardrails convert tool. Plan for manual review of the converted output, because the migration guide states that converted configurations still need it. Budget that review as part of the project, and keep your regression tests for dialog behavior in place so you can compare the converted flows against the originals. Ask your NVIDIA or implementation partner to confirm the conversion steps against the exact release you deploy.

How Colang 1.0 and 2.0 compare for a new project

This table compares Colang 1.0 and Colang 2.0 on the factors that decide a new NeMo Guardrails project: default status, IORails support, beta status, tooling, examples and migration effort. Read each row against your planned engine and rails, and treat any item marked as a point to confirm as an open question for the official docs before you commit.

FactorColang 1.0Colang 2.0
Default statusThe default version in NeMo Guardrails 0.25.0 when no version is set in the configurationSupported alongside 1.0, but must be selected explicitly in the configuration
IORails supportRequired today: IORails accepts only Colang 1.0 configurationsNot accepted by IORails, so it cannot be used with that engine
Beta statusNot in beta, documented as the stable defaultConfirm the current maturity label and any beta caveats in the official Colang 2 documentation
Tooling and examplesBroadest body of examples and community material to reuseConfirm which examples and tooling cover your features in the Colang 2 migration guide and docs
Migration effortStarting point if you must convert later, since the nemoguardrails convert tool works from 1.0Conversion output still needs manual review, so budget review time for every flow
Best fitProjects that must run on IORails for latency, or teams reusing existing 1.0 flowsGreenfield dialog designs that need Colang 2.0 features and do not depend on IORails
Decision riskLater move to 2.x requires conversion and retesting of every flowEngine constraints may force a redesign if you later need IORails

Why IORails changes the decision

The decisive constraint is that IORails accepts only Colang 1.0, so a team that wants the IORails engine for latency reasons cannot build its flows in Colang 2.0 and run them there. Colang 2.0 is a separate language with its own runtime behavior, and the IORails path does not take it. If low latency is a requirement, decide this before writing any flow, because moving a finished Colang 2.0 design onto IORails later means converting it first and re-testing it.

The choice then comes down to two designs that can meet the same policy. A dialog rail written in Colang adds LLM calls for intent matching and flow steering on each turn, and those calls set the response time. A classifier-based input rail, such as a topic or safety model run on IORails, avoids most of those extra calls. Teams that mainly need to block off-topic or unsafe input, and do not need scripted multi-turn steps, should test the classifier route first. Teams that need guided conversations will need dialog rails and should accept the extra latency or look at the latency options in the NeMo Guardrails documentation.

Treat the IORails behavior as something to confirm, not assume. Check the IORails section of the NeMo Guardrails documentation against the exact release you plan to deploy, including the version pinned in your environment, and record that check in the design decision. Then run a latency test with your real Colang 1.0 configuration and your target model endpoints before committing, since latency depends on your models, hosting and rail count rather than on the language alone.

Which version fits your project situation

If your design depends on the IORails engine, the version decision is already made for you. IORails accepts only Colang 1.0, so every flow in the project must be written in 1.0 syntax. Teams that chose IORails for latency or for parallel rail execution should not plan Colang 2.0 constructs into their dialog design.

  • Colang 1.0 is the only option: Write flows and rails in 1.0 syntax from the first commit.
  • Pin the version explicitly: Set the Colang version in config.yml so a later default or configuration change cannot move the project onto a version IORails will not run.
  • Confirm engine support per rail: Check the current documentation for which rail types run on IORails in the version you pin, since engine coverage determines where the latency benefit applies.
  • Keep the design small at first: Each dialog flow you add on 1.0 is one you may later convert, so limit early flows to the policies you must enforce.
  • Test the pinned stack: Run your regression suite on the exact NeMo Guardrails version and Colang setting you will deploy.

Before writing any flow, confirm the engine, the Colang version and the NeMo Guardrails release in one written configuration record that your security and platform teams can review.

How to set up a project on the version you choose

This sequence takes a new NeMo Guardrails project from a clean Python environment to a configuration that loads under the Colang version you picked, with a check at each step that confirms the setup before you build on it.

  1. Confirm the Python version

    Before installing anything, confirm that the interpreter on the build machine is Python 3.11, 3.12 or 3.13, the versions NeMo Guardrails 0.25.0 requires. Run the interpreter's version command in the environment you will use for development and in the image or host you plan to deploy to. The step is done when both report one of the supported versions. If your platform team standardizes on another Python release, raise it now, because the library will not install on an unsupported interpreter and the mismatch is cheaper to resolve before the project starts.

  2. Install the library in an isolated environment

    Create a virtual environment for the project and install the nemoguardrails package from PyPI, pinned to the release your team has approved, such as 0.25.0. Record the exact version in your dependency file so every developer and the build pipeline get the same library. The step is done when the package imports cleanly in the environment and the installed version matches the pin. Confirm the license expression on the PyPI page matches what your legal or procurement team reviewed.

  3. Set the Colang version in config.yml

    Create a configuration folder containing config.yml and set the Colang version there, choosing 1.0 or 2.0 explicitly rather than relying on the default. Keep the value identical across development, test and production copies of the configuration. The step is done when the file is saved in the folder you will pass to the Python API or server, and a second engineer reading it can tell which Colang version the project uses without asking. Also record the choice in your project's design notes so later changes are deliberate.

  4. Create a minimal flow file

    Add one Colang file to the same folder with a single user intent, one bot message and one flow that connects them, written in the syntax of the version you set. Keep it small on purpose, because the goal is to prove the toolchain works before you add real policy. Use the file extension and structure that match your chosen version. The step is done when the file parses without syntax errors on load, which you will confirm in the next step.

  5. Load the configuration with the Python API

    Load the folder with the Python API and create the rails object from it, then check that initialization completes without errors and that the log shows your configuration path and the Colang version being used. A parse error at this point usually means the file syntax does not match the version set in config.yml, so compare the two before changing anything else. The step is done when the rails object is created and the loaded configuration matches the folder you intended.

  6. Run the guardrails server and call it

    Start the guardrails server against the same folder, or build a server image from the Dockerfile the project provides, and send one request that should trigger your minimal flow. Confirm the server starts, reports the configuration it loaded, and returns the bot message you defined. Test the server with the same configuration as the Python API so both entry points are known to behave the same way. The step is done when the HTTP response matches the flow output and no startup errors appear in the logs.

  7. Run an off-flow check and record the result

    Send a request that should not match the minimal flow and confirm the bot falls through to its default behavior instead of the scripted reply. This shows that matching is working in both directions, which is a common gap in first builds. Save the request, the expected result and the actual result as a small test in your repository so the check runs again after every change. The step is done when both checks pass and the test is committed alongside the configuration. Only then should the team add real intents and flows.

The conversion path when you start on Colang 1.0

Starting on Colang 1.0 and moving to Colang 2.x is not a single step. The conversion tool, the manual review that NVIDIA's documentation requires, the tests that prove flows still behave, and the choice of which flows to rewrite by hand run alongside one another. Plan them together so that a converted file never reaches production without a reviewer and a regression check.

Run the convert tool first

The nemoguardrails convert command produces a Colang 2.x starting point from an existing Colang 1.0 project. Run it on a copy of the project in version control so the original files stay available for comparison. Treat the output as a draft: the conversion moves syntax, but it does not judge whether a flow still expresses the intended policy. Record which files it changed and which it skipped, because skipped files need separate handling.

Migration guide

Review every converted file by hand

NVIDIA's migration guide says converted configurations still need manual review, so budget reviewer time for each file rather than a sign-off on the whole project. Check intent definitions, bot responses, flow ordering and any action calls against the Colang 1.0 originals. Ask a reviewer who knows the assistant's policy, not only the syntax, to confirm that refusals and handoffs still fire on the same user messages.

Build flow regression tests before converting

Write tests against the Colang 1.0 behavior before running any conversion, using a fixed set of user messages with expected bot responses and expected rail outcomes. Run the same set against the converted project and the original. Differences are either regressions to fix or intended changes to record. Without this baseline, a converted flow can look correct in a demo and still miss an edge case that the old version handled.

Choose which flows to rewrite

Some flows are simpler to rebuild in Colang 2.x than to convert, particularly those that depend on intent matching or multi-step state that differs between the two versions. Sort flows into three groups: convert and review, rewrite from the policy, and retire. Rewrites need the same tests as conversions. Decide the grouping with the policy owner, since the choice changes what the assistant is allowed to do.

Confirm the target version before cutover

Confirm the Colang 2.x features, and the NeMo Guardrails release, you are targeting before cutover, because the documentation and tooling for each version change over time. Also confirm that the runtime you deploy supports the Colang version you converted to, since the choice of engine and version affects which configurations load. Keep the Colang 1.0 configuration deployable until the regression suite passes on the new one.

Decision path for choosing a Colang version

The path starts at project kickoff with one question: does the design require IORails, since it accepts only Colang 1.0. If it does, the team builds on 1.0. If not, the team checks whether it needs Colang 2.0 features and whether it already has 1.0 flows. Existing 1.0 flows that must move to 2.x go through the nemoguardrails convert tool, followed by manual review of the converted configuration.

Decision path from project kickoff to a Colang version and conversion step.

Tooling and examples available for each version

Colang 1.0 is the default in NeMo Guardrails and Colang 2.0 is supported alongside it, so tooling and examples differ by version. Confirm what ships in the release you run, because the library, its docs and its examples change between releases.

Default configuration and Colang 1.0 files

Colang 1.0 is the default, so a config.yml without an explicit version loads 1.0 flows. Check that your .co files, Python actions and config.yml load cleanly under the release you plan to run, and that your team's examples match that version. Starting on the default is the simplest path, but confirm it still fits your roadmap before the build starts.

NeMo Guardrails docs

Colang 2.0 documentation and status

Colang 2.0 is supported in NeMo Guardrails, but confirm its current maturity and any beta labels in the documentation for your release before you commit a production design to it. Read the Colang 2.0 pages and the release notes together, since syntax and runtime behavior may be described in more than one place.

Current release
0.25.0

Colang 1.0 to 2.x migration guide

NVIDIA publishes a migration guide and the nemoguardrails convert tool for moving 1.0 configurations to 2.x. Converted output still needs manual review, so plan time for testing each flow against its original behavior. Ask whether the guide covers every construct your flows use before you estimate the conversion.

Migration guide

IORails support by version

IORails accepts only Colang 1.0 configurations, which affects projects that depend on its parallel rail execution. Confirm this restriction in the current documentation for your release, and check whether your latency targets depend on IORails before choosing a version.

Example repository and sample projects

The NVIDIA-NeMo/Guardrails repository holds the source and any examples bundled with the library. Compare the examples for each version and note which ones your team can run unchanged. Check the repository for the examples folder in the tag you plan to deploy, since examples may lag behind the documentation.

NeMo Guardrails repository

Test and debugging tooling per version

Confirm which CLI commands, chat interface and logging options work with each Colang version in your release. Regression tests for dialog flows depend on the version, so write a small set of tests against your chosen version early and keep them in source control.

Questions teams ask before choosing a Colang version

How much effort does converting Colang 1.0 flows to Colang 2.x take?

Effort depends on how many flows, actions and custom rails your configuration contains, and on how much of it relies on Colang 1.0 behavior that changes in 2.x. NVIDIA documents a conversion path using the nemoguardrails convert tool, but it also says converted configurations still need manual review, so the tool removes the mechanical rewriting and leaves the testing and judgment work. A small configuration with a few intents and flows is usually a short review. A large one with many flows, custom actions and tuned intent matching needs a full regression pass on every conversation path. Ask any partner to size the work by counting flows, actions and test cases first.

Can our own developers convert the flows without outside help?

Yes, if your team has Python skills, access to a test environment with a working model endpoint, and someone who understands the bot's expected conversations. Start by installing the version of NeMo Guardrails you plan to run, which needs Python 3.11, 3.12 or 3.13, then run the convert tool on a copy of the configuration. Review every converted file against your original behavior and keep the original as a reference. The migration guide is the natural next read: NeMo Guardrails Colang 2 migration guide. Most teams find the hard part is writing tests that prove the converted bot behaves the same, not the conversion itself.

What does the client team need to provide for a conversion?

The work needs people who know the expected behavior of the assistant, not only the code. Typically that means a product owner who can approve which conversations must stay the same, a developer who owns the Python actions and the config.yml file, and someone who can run the bot against your chosen model endpoint. Provide the current configuration folder, any custom actions, a list of representative user conversations, and the environment where the bot runs. Access to logs from real or staged sessions helps identify flows that matter most. Confirm these items with your partner before work starts, because missing examples are the most common reason a conversion takes longer than planned.

What drives the cost of converting from Colang 1.0 to 2.x?

The cost is mostly the labor to review and test, because the conversion tool itself is a command you run. The main drivers are the number of flows and custom actions, how many distinct conversation paths must be verified, how intent matching was tuned in version 1.0, and whether any part of the bot depends on behavior that changes between versions. Cost also rises when there is no existing test set, because one has to be built before the converted bot can be trusted. One-time costs include the conversion review and test build, while the ongoing cost is maintenance of the tests as the bot changes. When requesting a quote, ask for the scope split into inventory, conversion, review, regression testing and handover.

How long does a Colang conversion usually take?

No duration is supplied for this work, so treat any single number with caution. The timeline is set by the size of the configuration, the number of conversation paths to verify, and how quickly your product and compliance reviewers can sign off on behavior. A configuration with a handful of flows can be reviewed in a short cycle, while a large assistant needs repeated test runs and stakeholder approval. Build time in the plan for at least one full test cycle and one fix cycle. Ask any partner to give the duration as a range tied to a written scope, and to list which parts depend on your reviewers' availability.

Should we start a new project on Colang 2.0 or Colang 1.0?

Choose the version based on what your target environment and tooling support, not only on what is newest. The NeMo Guardrails README says Colang 1.0 and 2.0 are both supported and that 1.0 is the default, so a new project must set the version explicitly. Check whether the rails you plan to use run on the engine you need, since the IORails engine accepts only Colang 1.0. If you start on 1.0 and expect to need 2.x features later, plan the conversion as part of the roadmap rather than as an emergency. Confirm the current status of 2.0 features in the official documentation before committing.

What breaks most often when flows move to Colang 2.x?

The most common failures are intent matches that shift after conversion, flows that fire too often or not at all, and custom actions that depend on behavior that changed. Because converted configurations need manual review, these issues usually appear only when a real conversation takes an unexpected path. Protect yourself with a regression suite built from the conversations your bot must handle, run against both the original and converted configurations. Log which flow fired for each turn so differences are visible. Ask your partner to show how they will detect silent changes, not only syntax errors.

How DeployOpen scopes Colang work on NeMo Guardrails

DeployOpen scopes Colang work as a fixed-scope engagement, with the version decision, flow design, conversion review and handover written down before any build starts. The first deliverable is a short version decision record that names the Colang version for each assistant, the reason for it, and the runtime it will run on. That record matters because the choice of Colang version determines which tooling, examples and migration path the project inherits, and it is easier to settle before flows exist than after. The written scope then lists the topics, dialog flows and actions in scope, the target NeMo Guardrails release, and the environment where the configuration will run. A quote follows from that written scope, so the reader should expect the size of the flow set and the number of assistants to be the main inputs.

Flow design is scoped by listing the intents, canonical forms, bot responses and multi-turn paths the assistant needs, then mapping each to the Colang constructs that will implement it. For a project that starts on Colang 1.0, the scope can also include a conversion review: DeployOpen runs the nemoguardrails convert tool, reviews the output by hand, and records each change that alters behavior. NVIDIA's migration guidance says converted configurations still need manual review, so this step is priced as engineering time, not as a button press. Handover covers the config.yml file, Colang files, any Python actions, regression tests for dialog changes, and a runbook for the team that will maintain them. Confirm with DeployOpen during scoping which of these items your engagement includes and which your own team will own afterward.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.