Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 23:46
· 2 commits to main since this release
5386e20

Switchyard v0.4.0

Switchyard 0.4.0 adds decision model support, including Jev, independent Composite routing profiles, Plan/Execute through Stage Router, and application-defined target restrictions. It also expands the Python, TypeScript, and Go bindings and links benchmark results to the configurations used to produce them.

This release includes breaking changes for library users and existing routing configurations. Review the migration notes below before upgrading.

Full changelog · Changes since v0.3.0

Routing and integrations

  • Decision models can make routing choices for standalone classifier routes, Stage judges, and Composite profile selection. Switchyard supports System One, the API used by Jev, alongside OpenAI Decisions. Configure the question, choices, and probability cutoff for selecting the capable or efficient model. Jev example · Decision model docs
  • Composite routing supports separate efficient-first and capable-first Stage profiles. An LLM classifier or decision model selects the starting profile, and the profile persists across compaction. Plan/Execute now runs through a Stage configuration. Composite configuration
  • Applications can supply required labels to restrict routing to eligible targets. Requirements can persist across turns. The application classifies sensitive data and approves targets.
  • Verification-Gated Routing (VGR) verifies a candidate answer from the efficient tier before choosing whether to serve it or fall back to the capable tier. It can escalate earlier after tool errors and fall back when Chat tool-call arguments are malformed.
  • The DeepSWE benchmark guide links the published results to the tested Astra/Luna Plan/Execute profile and documents the workload, harness, and settings needed to reproduce the runs. Benchmarks

Library and host APIs

  • Python adds configured algorithm execution and streaming translation. TypeScript adds configured execution and buffered translation. Go supports native and WASM backends.
  • Hosts can store and restore routing state across turns. Algorithms can run model and decision calls in parallel, and hosts can stop routing when they refuse a call. Host integration guide

Compatibility and correctness

  • Relay-managed buffered responses preserve upstream HTTP error statuses. Upstream error responses retain headers such as Retry-After.
  • Translation preserves refusal details, streaming stop reasons, and plaintext Responses reasoning history for non-OpenAI targets. Chat requests that ask for multiple choices return an explicit error.
  • Windowed classifiers drop empty history turns that could cause judge requests to fail.

Migration and removals

  • Move standalone Plan/Execute configurations to a Stage profile.
  • The standalone server now binds to 127.0.0.1 by default. Set --host explicitly for deployments that accept remote clients.
  • Rust and Python embedding callers must adopt the updated step-response APIs. Rust hosts now pass routing state into Algorithm::run_stream and receive the updated state in the routing outcome.
  • Composite Stage profile settings and decision request fields have changed. Review the changelog for the replacement fields and removed Rust APIs.

Install

Install the Python bindings:

pip install nemo-switchyard==0.4.0

Install the standalone server separately:

cargo install --locked switchyard-server --version 0.4.0

See the installation guide and getting-started guide for setup and examples.

Limitations

The standalone server remains a demo and evaluation component. The native NeMo Relay plugin requires Relay >=0.10.1, <1.0.0, and plugin bundles are published separately. Relay integration guide · Known issues