Skip to main content

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 lists all strategies, including the Plan/Execute configuration for Stage, escalation, advisor, sub-agent, and random.

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.0

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.0
File Size Uploaded Provenance Actions
nemo_switchyard-0.4.0.tar.gz 830.6 kB Without provenance Details for nemo_switchyard-0.4.0.tar.gz

Built distributions (wheels)

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

Total release size: 57.1 MB

Release files / nemo_switchyard-0.4.0.tar.gz

Download URL nemo_switchyard-0.4.0.tar.gz
Size 830.6 kB
Tags Source
SHA-256 checksum
How to use checksums
76a5d28786fe101db02f572848c686477390213625d21816e469507f8184b716
BLAKE2b-256 checksum
How to use checksums
41583ed7c3249ef8f0c2137cbe4c014b1b243af925c74a4c0b6f5cd5519e6a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-win_arm64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-win_arm64.whl
Size 8.3 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
f71cc0dc4f0b43b7a107b7ecc41b7570eb36cdaf3cb4f5334750b3d1f142226b
BLAKE2b-256 checksum
How to use checksums
9ba2b7cab88032495571e0e7b790b9374a7118fbebaa4002489baca3b82194b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-win_amd64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-win_amd64.whl
Size 8.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
880fbb2784303130e82ebca82532f4bd2da94b275f1e9b9e2bc8fcba1b7a0984
BLAKE2b-256 checksum
How to use checksums
3e4f8f114327c03b79690b7c1b15888da646424326808ce1ab076e6ab8d3af64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 10.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
303fcb2f10011485a33a96035c5d960f114b701bffc7ece52e77b723ea8e232e
BLAKE2b-256 checksum
How to use checksums
216c45ccf8ce570bfd0ecfe64021d603feedfbcc6ade4e97e507f86c77906464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 10.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d2eadf53bac3c80b2ddf87e1d94e3fa38b80f60f399713b6761474b0fa082212
BLAKE2b-256 checksum
How to use checksums
f43bfebc40d301611445f6f9582adc451bd62fc72f1ea76389f61c27e634f53e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Size 9.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c7da0a1b21fa1d4b1312559abfaf528c908b1e863b435397640af7b0d868150e
BLAKE2b-256 checksum
How to use checksums
edd1a729ad1cb83c1a37acf1951fdaa389b5218c8c6e9ac9c29090ea7e5ff3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL nemo_switchyard-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 9.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5e52c2bf9fb4e96cb0305ca9743297a640d8c8ae951a39a3cfef86aa5c9bce9f
BLAKE2b-256 checksum
How to use checksums
a2c64a8521a376fe9ec8e5cc191714724b6eaa8f610b61ae81d6178d7c98e9d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.0

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