MCPcopy Create free account

hub / github.com/NVIDIA-NeMo/Switchyard / types & classes

Types & classes851 in github.com/NVIDIA-NeMo/Switchyard

↓ 158 callersClassProxyContext
Per-request state shared by Python and native components.
switchyard_rust/core.py:253
↓ 84 callersClassLlmTarget
switchyard_rust/libsy.py:48
↓ 39 callersClassStatsAccumulator
crates/switchyard-server/src/stats/accumulator.rs:30
↓ 33 callersClassTranslationEngine
Single Python-facing engine for request, response, and stream translation.
switchyard_rust/translation.py:82
↓ 29 callersClassSessionAffinity
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 callersClassSignalTierSelectorRequestProcessor
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 callersClassRouteBundleConfigError
Raised when a YAML route bundle is malformed.
switchyard/cli/route_bundle.py:301
↓ 21 callersClassLLMClassifierRequestProcessor
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 callersClassRandomRoutingConfig
Validated parsing config for weighted strong/weak random routing.
switchyard/lib/profiles/random_routing.py:47
↓ 18 callersClassLLMClassifierConfig
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 callersClassLiteLLMSyClient
Call a LiteLLM gateway alias for a libsy target.
examples/experimental/litellm/src/switchyard_litellm/client.py:309
↓ 16 callersClassRouteTable
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 callersClassSignalTierSelectorConfig
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 callersClassProfileSwitchyard
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 callersClass_FakeClassifierClient
tests/test_llm_classifier_request_processor.py:42
↓ 14 callersClassProfileInput
Provider request and metadata passed to a Python profile.
switchyard_rust/profiles.py:72
↓ 14 callersClassSwitchyard
Python-only compatibility chain for the current FastAPI/recipe surface.
switchyard_rust/core.py:465
↓ 12 callersClassComponentChainProfile
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 callersClassTierClassifier
Async LLM classifier — one call per invocation; fails open to ``None``.
switchyard/lib/processors/stage_router/classifier.py:146
↓ 11 callersClassFormatTranslateResponseProcessor
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 callersClassOpenAILLMClient
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 callersClassAnthropicCacheBreakpointBackend
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 callersClassMockChunk
tests/test_translation_engine_chaos.py:181
↓ 10 callersClassStageRouterRequestProcessor
Picks a tier and stamps it on the context. Policy lives in the picker.
switchyard/lib/processors/stage_router_request_processor.py:42
↓ 9 callersClassAnthropicNativeBackend
Backend that calls an Anthropic-compatible Messages API.
crates/switchyard-components/src/backends/anthropic.rs:38
↓ 9 callersClassHandoffNoteInjector
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 callersClassMockChoice
tests/test_translation_engine_chaos.py:175
↓ 9 callersClassMockDelta
tests/test_translation_engine_chaos.py:154
↓ 9 callersClassRouteSignals
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 callersClassRoutingLogResponseProcessor
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 callersClass_CapturingBackend
Records the request handed to it and returns a canned response.
tests/test_anthropic_cache_breakpoint_backend.py:36
↓ 8 callersClass_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 callersClass_RecordingProbe
tests/test_backend_format_resolver.py:17
↓ 7 callersClassEscalationJudgeConfig
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 callersClassEscalationJudgeRequestProcessor
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 callersClassSwitchyardContextWindowExceededError
Raised when an upstream request exceeds the context window.
switchyard_rust/core.py:419
↓ 7 callersClass_OpenAICompatStub
tests/_chain_test_helpers.py:135
↓ 7 callersClass_Resp
tests/test_stage_router_classifier.py:26
↓ 6 callersClassDeterministicRoutingConfig
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 callersClassDimensionCollector
crates/switchyard-components/src/request_processors/dimension_collector.rs:20
↓ 6 callersClassProfileConfigError
Raised when a Python profile config declaration is invalid.
switchyard/lib/profiles/table.py:19
↓ 6 callersClassReasoningEffortNormalizer
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 callersClassRedisPinStore
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 callersClassRequest
crates/protocol/src/envelope.rs:46
↓ 6 callersClassRlLoggingRequestProcessor
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 callersClassUsage
crates/protocol/src/llm.rs:331
↓ 6 callersClass_FakeJudgeClient
tests/test_escalation_judge_request_processor.py:29
↓ 6 callersClass_StubClient
tests/test_stage_router_classifier.py:38
↓ 5 callersEnumBackend
crates/libsy-llm-client/src/backend.rs:70
↓ 5 callersClassEchoClient
tests/test_libsy_minimal_bindings.py:25
↓ 5 callersClassPassthroughProfileConfig
Dataclass profile config for direct single-upstream passthrough profiles.
switchyard/lib/profiles/passthrough.py:16
↓ 5 callersClassRlLoggingResponseProcessor
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 callersClassStageRouterDecisionLog
Thread-safe counter for stage_router decision sources.
switchyard/lib/processors/stage_router/decision_log.py:24
↓ 5 callersClassSubagentOverrideRuntime
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 callersClass_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 callersClass_DictL2
In-memory AffinityPinStore double with call counters.
tests/test_session_affinity.py:26
↓ 4 callersEnumBackendFormat
crates/switchyard-components/src/contracts/backend.rs:16
↓ 4 callersClassClassifierCompletion
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 callersClassFixedDecision
A decision that reports a fixed selected model.
crates/libsy/src/algorithms/util/affinity.rs:219
↓ 4 callersClassLiveStatsFooter
Live stats footer: aggregate row + one row per active model tier.
switchyard/cli/launchers/live_stats_footer.py:22
↓ 4 callersClassLlmTarget
crates/switchyard-components/src/contracts/backend.rs:58
↓ 4 callersClassMockFunctionDelta
tests/test_translation_engine_chaos.py:169
↓ 4 callersClassMockToolCallDelta
tests/test_translation_engine_chaos.py:162
↓ 4 callersClassModelFormatLookupProcessor
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 callersClassNativeServer
Host one TOML deployment through the PyO3 Rust server binding.
switchyard/cli/launchers/native_server.py:40
↓ 4 callersClassOpenAIChatLLMClassifierClient
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 callersClassOpenAiNativeBackend
Backend that calls an OpenAI-compatible Chat Completions or Responses API.
crates/switchyard-components/src/backends/openai.rs:37
↓ 4 callersClassShellTUI
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 callersClassStatsLlmBackend
crates/switchyard-components/src/backends/stats.rs:19
↓ 4 callersClassStatsRequestProcessor
crates/switchyard-components/src/request_processors/stats.rs:14
↓ 4 callersClassStatsResponseProcessor
crates/switchyard-components/src/response_processors/stats.rs:18
↓ 4 callersClassToolCall
crates/protocol/src/llm.rs:192
↓ 4 callersClassTranslateConfig
Model-to-format map used by IGW-owned translation processors.
switchyard/lib/processors/format_translate.py:78
↓ 4 callersClass_Clock
Manually-advanced monotonic clock for deterministic breaker tests.
tests/test_session_affinity.py:171
↓ 4 callersClass_FlakyL2
Failing store that counts attempts and can be healed mid-test.
tests/test_session_affinity.py:181
↓ 4 callersClass_PickWeakProcessor
tests/test_python_profile_abstractions.py:107
↓ 4 callersClass_Recorder
tests/test_stage_router_classifier.py:127
↓ 4 callersClass_RecordingRuntime
A ChainRuntime stand-in that records the calls routed to it.
tests/test_subagent_routing.py:22
↓ 4 callersClass_ResponsesToolCallState
switchyard/lib/chat_response/streaming_response_accumulator.py:128
↓ 4 callersClass_StaticProfile
tests/test_python_profile_abstractions.py:44
↓ 3 callersClassAnthropicMessagesEndpoint
Composable endpoint that exposes ``POST /v1/messages``.
switchyard/lib/endpoints/anthropic_messages_endpoint.py:65
↓ 3 callersClassBackendFormatResolution
Concrete backend format selected for a generic tier.
switchyard/lib/backends/backend_format_resolver.py:42
↓ 3 callersClassDeterministicRoutingLLMBackend
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 callersClassFieldVisitor
Renders every field type into a string map so assertions can use `contains`.
crates/libsy/tests/observability.rs:90
↓ 3 callersClassLLMClassifierError
Raised when the classifier LLM cannot produce valid route signals.
switchyard/lib/processors/llm_classifier/request_processor.py:64
↓ 3 callersClassLLMClassifierProfile
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 callersClassLlmTargetBackend
crates/switchyard-components/src/backends/multi.rs:31
↓ 3 callersClassMetadataTagProcessor
Writes a tag into ctx.metadata to prove it ran.
tests/test_switchyard.py:75
↓ 3 callersClassModelOverrideProcessor
Mutates the model field on the request body.
tests/test_switchyard.py:64
↓ 3 callersClassMultiLlmBackend
crates/switchyard-components/src/backends/multi.rs:66
↓ 3 callersClassOpenAIChatEndpoint
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 callersClassProfileRequestMetadata
Request metadata available to Python profile runtimes.
switchyard_rust/profiles.py:20
↓ 3 callersClassProxyHealthMonitor
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 callersClassRandomRoutingRequestProcessor
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 callersClassResponsesEndpoint
Composable endpoint that exposes ``POST /v1/responses``.
switchyard/lib/endpoints/responses_endpoint.py:48
↓ 3 callersClassStatsBackendLatency
crates/switchyard-components/src/stats/context.rs:32
↓ 3 callersClassSwitchyardProcessorError
Raised when a processor fails.
switchyard_rust/core.py:407
↓ 3 callersClassSwitchyardUpstreamError
Raised when an upstream call fails.
switchyard_rust/core.py:413
↓ 3 callersClassTierSelectionDecision
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 callersClass_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