> This page is for version Dev.
> For other versions, use one of these documentation indexes:
> - Latest (v0.4.0) (default): https://docs.nvidia.com/nemo/switchyard/latest/llms.txt
> - Dev: https://docs.nvidia.com/nemo/switchyard/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/switchyard/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/switchyard/_mcp/server.

# Rust API

Choose the crates your integration needs. The links below open generated Rust
API documentation for the core library and its optional supporting components.

## `switchyard-libsy` \[#switchyard-libsy]

Use libsy to construct the model pool, run built-in routing algorithms, implement
a custom algorithm, or handle requested work through the Step stream.

[Open the generated libsy API documentation](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_libsy/)

## `switchyard-protocol` \[#switchyard-protocol]

Use protocol types for normalized conversations, response streams, routed LLM
clients, decisions, metadata, and wire-format identifiers.

[Open the generated protocol API documentation](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/)

## `switchyard-translation` \[#switchyard-translation]

Use translation to convert requests, responses, and streams between OpenAI Chat
Completions, OpenAI Responses, and Anthropic Messages formats.

[Open the generated translation API documentation](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_translation/)

## `switchyard-llm-client` \[#switchyard-llm-client]

Use the optional HTTP clients for LLM and decision calls, or the supplied
execution helpers when your application does not drive the step stream itself.

[Open the generated client API documentation](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_llm_client/)

## `switchyard-runner` \[#switchyard-runner]

Use the optional runner to load TOML configuration, resolve named routes, and
execute them inside a serving integration. See
[`Runner`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_runner/struct.Runner.html)
and the [configuration reference](/nemo/switchyard/dev/reference/runner-configuration-toml).

[Open the generated runner API documentation](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_runner/)

For field meanings and provider API mappings, use the [LLM protocol reference](/nemo/switchyard/dev/reference/protocols/llm/requests)
or [decision protocol reference](/nemo/switchyard/dev/reference/protocols/decision-models/questions).

## Crate boundary \[#crate-boundary]

Use the [Rust quickstart](/nemo/switchyard/dev/get-started/getting-started#install) for compatible dependency
versions. [Mechanics of Libsy](/nemo/switchyard/dev/integrate-switchyard/mechanics-of-libsy) explains how these crates
work together during a run.

Import algorithms and orchestration types from `switchyard_libsy`. Import
requests, responses, metadata, decisions, and LLM client traits from
`switchyard_protocol`. Keep both dependencies on compatible versions.

Add `switchyard-translation` when your application directly converts requests,
responses, or streams between provider formats. Use a version compatible with
your other Switchyard dependencies.

The runner and HTTP client are optional for direct libsy integration. Your host
can construct the algorithm and execute the requested work itself. The
[demo server](/nemo/switchyard/dev/local-demo/run-the-reference-server) is a reference application around
the runner; [Python bindings](/nemo/switchyard/dev/integrate-switchyard/embed-in-your-gateway-or-harness#python-bindings) expose the
same routing core to Python applications.