Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA-NeMo/Switchyard
/ types & classes
Types & classes
851 in github.com/NVIDIA-NeMo/Switchyard
⨍
Functions
4,886
◇
Types & classes
851
↳
Endpoints
27
↓ 158 callers
Class
ProxyContext
Per-request state shared by Python and native components.
switchyard_rust/core.py:253
↓ 84 callers
Class
LlmTarget
switchyard_rust/libsy.py:48
↓ 39 callers
Class
StatsAccumulator
crates/switchyard-server/src/stats/accumulator.rs:30
↓ 33 callers
Class
TranslationEngine
Single Python-facing engine for request, response, and stream translation.
switchyard_rust/translation.py:82
↓ 29 callers
Class
SessionAffinity
Pins a routing decision per conversation and reuses it on later turns. The shared building block both routing paths use for the *common* part of
switchyard/lib/session_affinity.py:67
↓ 25 callers
Class
SignalTierSelectorRequestProcessor
Convert a stamped :class:`RouteDecision` into a deterministic backend tier. This processor performs no LLM calls and does not mutate the request
switchyard/lib/processors/llm_classifier/tier_selector_request_processor.py:175
↓ 22 callers
Class
RouteBundleConfigError
Raised when a YAML route bundle is malformed.
switchyard/cli/route_bundle.py:301
↓ 21 callers
Class
LLMClassifierRequestProcessor
Extract semantic routing signals by calling an underlying LLM. The processor leaves the inbound request unchanged. It validates the classifie
switchyard/lib/processors/llm_classifier/request_processor.py:297
↓ 21 callers
Class
RandomRoutingConfig
Validated parsing config for weighted strong/weak random routing.
switchyard/lib/profiles/random_routing.py:47
↓ 18 callers
Class
LLMClassifierConfig
Configuration for :class:`LLMClassifierRequestProcessor`. The classifier call is OpenAI-chat-compatible by default. Tests and custom hosts ca
switchyard/lib/processors/llm_classifier/request_processor.py:86
↓ 17 callers
Class
LiteLLMSyClient
Call a LiteLLM gateway alias for a libsy target.
examples/experimental/litellm/src/switchyard_litellm/client.py:309
↓ 16 callers
Class
RouteTable
Table that maps model names to pre-built profile runtimes. Register one chain per model the proxy should handle explicitly. Unknown models ra
switchyard/lib/route_table.py:48
↓ 16 callers
Class
SignalTierSelectorConfig
Policy for mapping :class:`RouteDecision` to backend tier labels. ``tier_mapping`` translates abstract classifier tiers such as ``RouteTier.S
switchyard/lib/processors/llm_classifier/tier_selector_request_processor.py:70
↓ 15 callers
Class
ProfileSwitchyard
Expose a Profile through the existing ``Switchyard.call`` protocol. Endpoints and route registries currently call ``obj.call(request, ctx=...)``
switchyard/lib/profiles/switchyard_adapter.py:23
↓ 15 callers
Class
_FakeClassifierClient
tests/test_llm_classifier_request_processor.py:42
↓ 14 callers
Class
ProfileInput
Provider request and metadata passed to a Python profile.
switchyard_rust/profiles.py:72
↓ 14 callers
Class
Switchyard
Python-only compatibility chain for the current FastAPI/recipe surface.
switchyard_rust/core.py:465
↓ 12 callers
Class
ComponentChainProfile
Run existing processor/backend components as one Profile runtime. This is intentionally private. It lets Profile configs own construction dir
switchyard/lib/profiles/chain.py:65
↓ 12 callers
Class
TierClassifier
Async LLM classifier — one call per invocation; fails open to ``None``.
switchyard/lib/processors/stage_router/classifier.py:146
↓ 11 callers
Class
FormatTranslateResponseProcessor
Translate the response back to the inbound format the client expects. Reads ``ctx.metadata[CTX_ORIGINAL_FORMAT]`` (stamped by :class:`StampOr
switchyard/lib/processors/format_translate.py:188
↓ 11 callers
Class
OpenAILLMClient
Client that wraps the official OpenAI Python SDK. Works with any OpenAI-compatible API (OpenAI, NVIDIA NIM, Azure, vLLM, etc.) by accepting a
switchyard/lib/llm_client.py:19
↓ 10 callers
Class
AnthropicCacheBreakpointBackend
Wrap an Anthropic-format LLMBackend to inject ephemeral cache breakpoints. Drop-in around the inner backend. ``startup`` / ``shutdown`` / ``
switchyard/lib/backends/anthropic_cache_breakpoint_backend.py:80
↓ 10 callers
Class
MockChunk
tests/test_translation_engine_chaos.py:181
↓ 10 callers
Class
StageRouterRequestProcessor
Picks a tier and stamps it on the context. Policy lives in the picker.
switchyard/lib/processors/stage_router_request_processor.py:42
↓ 9 callers
Class
AnthropicNativeBackend
Backend that calls an Anthropic-compatible Messages API.
crates/switchyard-components/src/backends/anthropic.rs:38
↓ 9 callers
Class
HandoffNoteInjector
Appends a guidance note to a tier-picked request driven by real signals. Stateless — no per-session tracking. On the capable tier the note fires
switchyard/lib/processors/stage_router/handoff_notes.py:61
↓ 9 callers
Class
MockChoice
tests/test_translation_engine_chaos.py:175
↓ 9 callers
Class
MockDelta
tests/test_translation_engine_chaos.py:154
↓ 9 callers
Class
RouteSignals
General-purpose signal record (default profile, backwards-compatible). Suited for mixed traffic — chat, summarization, extraction, generic coding
switchyard/lib/processors/llm_classifier/signals.py:282
↓ 9 callers
Class
RoutingLogResponseProcessor
Append one JSON line per completed request to ``log_file``. Each record carries the routing decision (selected model and tier), the caller-su
switchyard/lib/processors/routing_log_response_processor.py:30
↓ 9 callers
Class
_CapturingBackend
Records the request handed to it and returns a canned response.
tests/test_anthropic_cache_breakpoint_backend.py:36
↓ 8 callers
Class
_FakeAsyncStream
Mimics the OpenAI/Anthropic SDK ``AsyncStream``. Async-iterable and closable via an async ``close()`` (the SDK shape — not the async-generato
tests/test_sse_stream_close.py:26
↓ 8 callers
Class
_RecordingProbe
tests/test_backend_format_resolver.py:17
↓ 7 callers
Class
EscalationJudgeConfig
Configuration for :class:`EscalationJudgeRequestProcessor`. The judge call is OpenAI-chat-compatible; tests inject any object implementing th
switchyard/lib/processors/escalation_judge_request_processor.py:86
↓ 7 callers
Class
EscalationJudgeRequestProcessor
Route weak until an LLM judge says the run is in trouble, then latch strong. Per-turn policy (the latch): a pinned conversation routes strong wit
switchyard/lib/processors/escalation_judge_request_processor.py:170
↓ 7 callers
Class
SwitchyardContextWindowExceededError
Raised when an upstream request exceeds the context window.
switchyard_rust/core.py:419
↓ 7 callers
Class
_OpenAICompatStub
tests/_chain_test_helpers.py:135
↓ 7 callers
Class
_Resp
tests/test_stage_router_classifier.py:26
↓ 6 callers
Class
DeterministicRoutingConfig
Configuration for the deterministic LLM-classifier routing profile. A strong/weak tier pair plus a classifier LLM target. The classifier insp
switchyard/lib/profiles/deterministic_routing_config.py:26
↓ 6 callers
Class
DimensionCollector
crates/switchyard-components/src/request_processors/dimension_collector.rs:20
↓ 6 callers
Class
ProfileConfigError
Raised when a Python profile config declaration is invalid.
switchyard/lib/profiles/table.py:19
↓ 6 callers
Class
ReasoningEffortNormalizer
Normalize ``request.body["reasoning_effort"]`` to an upstream-valid value. No-op when the field is absent or already a valid value. Maps known
switchyard/lib/processors/reasoning_effort_normalizer.py:39
↓ 6 callers
Class
RedisPinStore
Shared, persistent pin store backed by a standalone Redis. Args: url: Redis connection URL (e.g. ``"redis://host:6379/0"``). ttl_
switchyard/lib/redis_pin_store.py:30
↓ 6 callers
Class
Request
crates/protocol/src/envelope.rs:46
↓ 6 callers
Class
RlLoggingRequestProcessor
Snapshot the inbound request as an OpenAI-Chat body for RL trace logging. The response-side logger only receives ``(ctx, response)``, so the requ
switchyard/lib/processors/rl_logging_request_processor.py:21
↓ 6 callers
Class
Usage
crates/protocol/src/llm.rs:331
↓ 6 callers
Class
_FakeJudgeClient
tests/test_escalation_judge_request_processor.py:29
↓ 6 callers
Class
_StubClient
tests/test_stage_router_classifier.py:38
↓ 5 callers
Enum
Backend
crates/libsy-llm-client/src/backend.rs:70
↓ 5 callers
Class
EchoClient
tests/test_libsy_minimal_bindings.py:25
↓ 5 callers
Class
PassthroughProfileConfig
Dataclass profile config for direct single-upstream passthrough profiles.
switchyard/lib/profiles/passthrough.py:16
↓ 5 callers
Class
RlLoggingResponseProcessor
Write one ``message_history`` JSON trace per completed turn to ``log_dir``. Restores the pre-1.0 ``--enable-rl-logging`` local trace format: each
switchyard/lib/processors/rl_logging_response_processor.py:36
↓ 5 callers
Class
StageRouterDecisionLog
Thread-safe counter for stage_router decision sources.
switchyard/lib/processors/stage_router/decision_log.py:24
↓ 5 callers
Class
SubagentOverrideRuntime
Wrap a runtime, sending delegated sub-agent work to ``worker`` instead. Normal traffic runs the wrapped runtime unchanged. A request whose header
switchyard/lib/profiles/subagent_override.py:19
↓ 5 callers
Class
_AlienChatRequest
A request-shaped object unknown to either engine. Used to verify that NotImplementedError is raised with a useful message instead of silently
tests/test_translation_engine_chaos.py:41
↓ 5 callers
Class
_DictL2
In-memory AffinityPinStore double with call counters.
tests/test_session_affinity.py:26
↓ 4 callers
Enum
BackendFormat
crates/switchyard-components/src/contracts/backend.rs:16
↓ 4 callers
Class
ClassifierCompletion
Result of a single classifier LLM call. Carries the raw ``content`` (a JSON string to be parsed into :class:`RouteDecision`) and the raw SDK
switchyard/lib/processors/llm_classifier/request_processor.py:69
↓ 4 callers
Class
FixedDecision
A decision that reports a fixed selected model.
crates/libsy/src/algorithms/util/affinity.rs:219
↓ 4 callers
Class
LiveStatsFooter
Live stats footer: aggregate row + one row per active model tier.
switchyard/cli/launchers/live_stats_footer.py:22
↓ 4 callers
Class
LlmTarget
crates/switchyard-components/src/contracts/backend.rs:58
↓ 4 callers
Class
MockFunctionDelta
tests/test_translation_engine_chaos.py:169
↓ 4 callers
Class
MockToolCallDelta
tests/test_translation_engine_chaos.py:162
↓ 4 callers
Class
ModelFormatLookupProcessor
Look up the selected model's target format from the translate config. After a router picks a tier and stamps its model name into ``ctx.select
switchyard/lib/processors/format_translate.py:86
↓ 4 callers
Class
NativeServer
Host one TOML deployment through the PyO3 Rust server binding.
switchyard/cli/launchers/native_server.py:40
↓ 4 callers
Class
OpenAIChatLLMClassifierClient
OpenAI-chat-compatible implementation of :class:`LLMClassifierClient`. Defaults to strict Structured Outputs (``response_format`` of type ``j
switchyard/lib/processors/llm_classifier/request_processor.py:226
↓ 4 callers
Class
OpenAiNativeBackend
Backend that calls an OpenAI-compatible Chat Completions or Responses API.
crates/switchyard-components/src/backends/openai.rs:37
↓ 4 callers
Class
ShellTUI
Run a child process in a PTY with a live footer drawn below it. The terminal is split into two regions via DECSTBM (scroll-region): * rows 1
switchyard/server/shell_tui.py:77
↓ 4 callers
Class
StatsLlmBackend
crates/switchyard-components/src/backends/stats.rs:19
↓ 4 callers
Class
StatsRequestProcessor
crates/switchyard-components/src/request_processors/stats.rs:14
↓ 4 callers
Class
StatsResponseProcessor
crates/switchyard-components/src/response_processors/stats.rs:18
↓ 4 callers
Class
ToolCall
crates/protocol/src/llm.rs:192
↓ 4 callers
Class
TranslateConfig
Model-to-format map used by IGW-owned translation processors.
switchyard/lib/processors/format_translate.py:78
↓ 4 callers
Class
_Clock
Manually-advanced monotonic clock for deterministic breaker tests.
tests/test_session_affinity.py:171
↓ 4 callers
Class
_FlakyL2
Failing store that counts attempts and can be healed mid-test.
tests/test_session_affinity.py:181
↓ 4 callers
Class
_PickWeakProcessor
tests/test_python_profile_abstractions.py:107
↓ 4 callers
Class
_Recorder
tests/test_stage_router_classifier.py:127
↓ 4 callers
Class
_RecordingRuntime
A ChainRuntime stand-in that records the calls routed to it.
tests/test_subagent_routing.py:22
↓ 4 callers
Class
_ResponsesToolCallState
switchyard/lib/chat_response/streaming_response_accumulator.py:128
↓ 4 callers
Class
_StaticProfile
tests/test_python_profile_abstractions.py:44
↓ 3 callers
Class
AnthropicMessagesEndpoint
Composable endpoint that exposes ``POST /v1/messages``.
switchyard/lib/endpoints/anthropic_messages_endpoint.py:65
↓ 3 callers
Class
BackendFormatResolution
Concrete backend format selected for a generic tier.
switchyard/lib/backends/backend_format_resolver.py:42
↓ 3 callers
Class
DeterministicRoutingLLMBackend
Dispatch to the tier picked by the upstream router processor. Args: tiers: Mapping of tier label to ``(LLMBackend, model_name)``.
switchyard/lib/backends/deterministic_routing_llm_backend.py:32
↓ 3 callers
Class
FieldVisitor
Renders every field type into a string map so assertions can use `contains`.
crates/libsy/tests/observability.rs:90
↓ 3 callers
Class
LLMClassifierError
Raised when the classifier LLM cannot produce valid route signals.
switchyard/lib/processors/llm_classifier/request_processor.py:64
↓ 3 callers
Class
LLMClassifierProfile
A bundle pairing a classifier prompt with its schema and routing policy. Treat this as the indivisible unit. Don't mix-and-match a prompt from
switchyard/lib/processors/llm_classifier/presets.py:211
↓ 3 callers
Class
LlmTargetBackend
crates/switchyard-components/src/backends/multi.rs:31
↓ 3 callers
Class
MetadataTagProcessor
Writes a tag into ctx.metadata to prove it ran.
tests/test_switchyard.py:75
↓ 3 callers
Class
ModelOverrideProcessor
Mutates the model field on the request body.
tests/test_switchyard.py:64
↓ 3 callers
Class
MultiLlmBackend
crates/switchyard-components/src/backends/multi.rs:66
↓ 3 callers
Class
OpenAIChatEndpoint
Composable endpoint that exposes ``POST /v1/chat/completions``. Reads the raw JSON body, wraps it in a Rust-backed OpenAI chat request (no va
switchyard/lib/endpoints/openai_chat_endpoint.py:51
↓ 3 callers
Class
ProfileRequestMetadata
Request metadata available to Python profile runtimes.
switchyard_rust/profiles.py:20
↓ 3 callers
Class
ProxyHealthMonitor
Periodic liveness probe for the in-process proxy. ``poll()`` is designed to run from a footer-render thread. It performs a quick ``GET /healt
switchyard/cli/launchers/proxy_health_monitor.py:11
↓ 3 callers
Class
RandomRoutingRequestProcessor
Rewrite requests to the randomly selected strong or weak target. This is a compatibility component for the current Python profile chain.
switchyard/lib/processors/random_routing_request_processor.py:14
↓ 3 callers
Class
ResponsesEndpoint
Composable endpoint that exposes ``POST /v1/responses``.
switchyard/lib/endpoints/responses_endpoint.py:48
↓ 3 callers
Class
StatsBackendLatency
crates/switchyard-components/src/stats/context.rs:32
↓ 3 callers
Class
SwitchyardProcessorError
Raised when a processor fails.
switchyard_rust/core.py:407
↓ 3 callers
Class
SwitchyardUpstreamError
Raised when an upstream call fails.
switchyard_rust/core.py:413
↓ 3 callers
Class
TierSelectionDecision
Audit record for one signal-to-tier decision. Captures both the LLM's own vote (``llm_recommended_tier``) and the Python policy's computed ve
switchyard/lib/processors/llm_classifier/tier_selector_request_processor.py:51
↓ 3 callers
Class
_SlowSSEStub
Loopback OpenAI-compatible server that streams SSE chunks slowly. Streams many chunks with a delay so a client that reads one frame and aband
tests/test_stream_leak_repro.py:50
next →
1–100 of 851, ranked by callers