Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Switchyard

NVIDIA NeMo Switchyard

License: Apache-2.0 Latest GitHub release PyPI: nemo-switchyard crates.io: switchyard-libsy crates.io: switchyard-server GitHub contributors

Switchyard is an open-source library that helps an AI agent choose which model handles each request. It combines efficient models with more capable models so you can balance task success, cost, and latency on your workload.

Use Switchyard through a gateway integration, try it with a local proxy, or embed it in your own harness. You choose the model pool. Switchyard supplies the routing decision. Your gateway or application owns the surrounding service.

How it works

  1. Configure the models your application can use and choose a routing algorithm.
  2. The algorithm examines the request or the agent's recent tool activity. Some algorithms call a model to judge the task.
  3. Your gateway or application sends the request to the selected model. Routing can change as the agent continues its work.

Evaluate the complete agent, model pool, and routing configuration against your single-model baseline. A cheaper model call does not guarantee a cheaper successfully completed task.

Embed the library in your harness

Refer to the embedding example.

Routing algorithms

Start with Auto. Choose Task, Execution, or Composite when you need more control. These names describe routing choices.

Choice How it chooses
Auto Uses the current default: Execution (Stage), efficient-first, with a confidence threshold of 0.5 and no classifier call.
Task A model judges whether the efficient model can handle the task.
Execution Uses recent tool activity and outcome signals to choose a model as the agent runs.
Composite Combines Task and Execution: a classifier sets the default model tier when execution signals are uncertain.

The routing overview retains the full catalogue, including Plan/Execute, escalation, advisor, sub-agent, and random strategies.

Prefill routing is designed for fast, efficient model selection using a model's prefill activations and a classifier trained on your own evaluation data.

Evaluation and reference

Compare benchmark results and configs for Terminal-Bench 2.1 and DeepSWE. For latency and routing overhead testing, see Soak Testing.

Further reading

Metadata

Release files for nemo-switchyard 0.4.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nemo-switchyard 0.4.0a1
File Size Uploaded Provenance Actions
nemo_switchyard-0.4.0a1.tar.gz 768.6 kB Without provenance Details for nemo_switchyard-0.4.0a1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for nemo-switchyard 0.4.0a1
File Actions
nemo_switchyard-0.4.0a1-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-win_arm64.whl
nemo_switchyard-0.4.0a1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-win_amd64.whl
nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
nemo_switchyard-0.4.0a1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-macosx_11_0_arm64.whl
nemo_switchyard-0.4.0a1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for nemo_switchyard-0.4.0a1-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 54.4 MB

Release files / nemo_switchyard-0.4.0a1.tar.gz

Download URL nemo_switchyard-0.4.0a1.tar.gz
Size 768.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8399becc03cc6f77e4885a95f70c0565d9aba27f15bfea6758596fdf81043097
BLAKE2b-256 checksum
How to use checksums
8df8088042a9e7152402384107a900d252f9aae1a9ad92764b1f866387413929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-win_arm64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-win_arm64.whl
Size 7.9 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
6e7517ff21b7c8a4f1617e84e45ed03686ed30c31709c0a6d3be8b8f4a50ae23
BLAKE2b-256 checksum
How to use checksums
7c527561cc1988733e87fce82df8cf4a52beaa109e6b0bf5eff52661db113f97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-win_amd64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-win_amd64.whl
Size 8.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ae42923283f3b88ebf0a92d3161729654a9987a1208478498e764e06cb8bd7dc
BLAKE2b-256 checksum
How to use checksums
ff95058f0fbb48670c904fe2c93b8d9959073402293cc6dfbb6ac074b70c2c3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
5a63b3d26b49802827dec3ba6a187765c0b6e26b732bf0a16de59f593ad32a9e
BLAKE2b-256 checksum
How to use checksums
a292c53d48d794fc11c59c1219f8839f7313fa9d499e75753d22a58407be2535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.8 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a943433bd0294e86942f9c29ffc6ff6ad2717c27619a59dd730635603f1dea12
BLAKE2b-256 checksum
How to use checksums
7c6babc7e73629e4d34ad2c923e63996bbdcbb3c96e515c44fdd2b5734688e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-macosx_11_0_arm64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-macosx_11_0_arm64.whl
Size 8.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2c9777180635fceb30ff6144ec03443337fc0ab0e008b9ad25ab6802433214a7
BLAKE2b-256 checksum
How to use checksums
38824e6cefc7db47967f903718d54e7b08b9c48ffbd71f74f3dc06fc37fbe0ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nemo_switchyard-0.4.0a1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL nemo_switchyard-0.4.0a1-cp310-abi3-macosx_10_12_x86_64.whl
Size 9.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1f34de8c0a4626c34b566db8b55c9591acda5121e249b8fffc9010cbe4578d3f
BLAKE2b-256 checksum
How to use checksums
0d38e1b2473dac6c847d7513c17d75eca220d8a9088b991c5fb73a4934791027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nemo-switchyard 0.4.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page