Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.
Rust
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
use pyo3::prelude::*;
mod errors;
mod libsy_bindings;
mod py_serde;
mod server_bindings;
mod translation;
#[pymodule]
fn _switchyard_rust(module: &Bound<'_, PyModule>) -> PyResult<()> {
errors::register(module)?;
libsy_bindings::register(module)?;
server_bindings::register(module)?;
translation::register(module)?;
Ok(())
}