Skip to content

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
1.1 KB
Raw Blame
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""Run Rust-owned libsy algorithms with Python-hosted model clients."""

from switchyard_rust.libsy import (
    Algorithm,
    AlgorithmFactory,
    ConfiguredAlgorithm,
    ContextWindowExceededError,
    CustomClassifierConfig,
    DecisionCall,
    DeescalationConfig,
    EscalationClassifierConfig,
    LibsyError,
    LlmClassifierConfig,
    LlmFallback,
    LlmResponse,
    ModelCall,
    OutcomeMetadata,
    RoutingOutcome,
    Step,
    TaskClassifierConfig,
)

from . import algorithms as algorithms

__all__ = [
    "Algorithm",
    "AlgorithmFactory",
    "ConfiguredAlgorithm",
    "ContextWindowExceededError",
    "CustomClassifierConfig",
    "DecisionCall",
    "DeescalationConfig",
    "EscalationClassifierConfig",
    "LibsyError",
    "LlmClassifierConfig",
    "LlmFallback",
    "LlmResponse",
    "ModelCall",
    "OutcomeMetadata",
    "RoutingOutcome",
    "Step",
    "TaskClassifierConfig",
    "algorithms",
]