MCPcopy Create free account

hub / github.com/NVIDIA-NeMo/Switchyard / functions

Functions4,886 in github.com/NVIDIA-NeMo/Switchyard

↓ 4 callersFunction_load_generator_module
()
tests/test_prepare_harbor_dataset.py:17
↓ 4 callersFunction_make_app
(table: RouteTable)
tests/test_route_table.py:33
↓ 4 callersFunction_make_completion
(content: str = "Hello!", model: str = "gpt-4o")
tests/test_response_translation_engine.py:34
↓ 4 callersFunction_make_request
(reasoning_effort: str | None)
tests/test_reasoning_effort_normalizer.py:17
↓ 4 callersFunction_msg_tool_call
(name: str)
tests/test_stage_router_pickers.py:37
↓ 4 callersFunction_openai_chat
(messages: list[dict[str, Any]])
tests/test_anthropic_cache_breakpoint_backend.py:67
↓ 4 callersFunction_optional_bool
(value: object, default: bool)
switchyard/cli/route_bundle.py:1359
↓ 4 callersFunction_reasoning_text
Return ``reasoning`` / ``reasoning_content`` from a pydantic field. Both names are vendor extensions produced by reasoning models (different
tests/e2e/test_passthrough_e2e.py:75
↓ 4 callersFunction_request_format
(request: ChatRequest)
switchyard_rust/translation.py:304
↓ 4 callersFunction_role_type_name
Return a stable display name for role validation errors.
switchyard_rust/core.py:444
↓ 4 callersFunction_run
(cmd: list[str], cwd: Path | None = None)
benchmark/run_manifest.py:30
↓ 4 callersFunction_run_command
( command: list[str], *, cwd: Path | None = None, timeout: int = 30, )
tests/e2e/test_closed_book_proxy_integration.py:32
↓ 4 callersFunction_sequence
(value: object, path: str)
examples/experimental/litellm/src/switchyard_litellm/client.py:29
↓ 4 callersFunction_signals_json
(**overrides: object)
tests/_chain_test_helpers.py:65
↓ 4 callersFunction_strip_ansi
(text: str)
tests/test_live_stats_footer.py:16
↓ 4 callersFunction_target
( target_id: str, model: str, *, format: object = BackendFormat.OPENAI, )
tests/test_switchyard_rust_component_bindings.py:33
↓ 4 callersFunction_validate_allowed_keys
( mapping: Mapping[str, object], allowed_keys: frozenset[str], where: str, )
switchyard/cli/route_bundle.py:1253
↓ 4 callersFunction_writeall
Loop ``os.write`` until every byte is flushed. A single ``os.write`` to a tty can return fewer bytes than requested when the kernel's tty out
switchyard/server/shell_tui.py:62
↓ 4 callersMethodadd_model_listing_warning
Record non-fatal model catalog discovery warnings for ``/v1/models``.
switchyard/lib/route_table.py:148
↓ 4 callersFunctionapply_default_tier_timeout
Apply the default tier timeout when a target has no explicit timeout.
switchyard/lib/profiles/tier_target_builders.py:66
↓ 4 callersFunctionassert_embeds_original
Asserts a translated body carries the exact original body in preservation metadata.
crates/switchyard-translation/tests/lossless_roundtrip.rs:262
↓ 4 callersFunctionattach_caller_api_key
Attach the caller-supplied API key to *ctx* when the request carries one.
switchyard/lib/request_metadata.py:93
↓ 4 callersFunctionbuild_table_from_bundle
Build a :class:`RouteTable` from a :class:`RouteBundle`. Single assembly path for both the YAML loader and the launchers. If ``bundle.stats_
switchyard/cli/route_bundle.py:410
↓ 4 callersMethodcall
Run the wrapped Profile and translate its response for the caller. Raises: SwitchyardProcessorError: A response processor raises
switchyard/lib/profiles/switchyard_adapter.py:54
↓ 4 callersFunctioncandidate
()
crates/switchyard-skill-distillation/src/model.rs:561
↓ 4 callersFunctioncapture_request_preservation
Captures an exact source request body according to preservation policy.
crates/switchyard-translation/src/util.rs:225
↓ 4 callersFunctioncapture_response_preservation
Captures an exact source response body according to preservation policy.
crates/switchyard-translation/src/util.rs:238
↓ 4 callersFunctionconfig
Builds a deterministic strong/weak config for routing tests.
crates/switchyard-components/tests/adversarial_random_routing.rs:14
↓ 4 callersFunctioncontent_text
Flatten string-or-content-block message content to text. Handles plain strings, OpenAI/Anthropic text blocks, nested ``tool_result`` content,
switchyard/lib/processors/message_condensing.py:120
↓ 4 callersMethodcontext_mut
Returns mutable access to the leased Rust context.
crates/switchyard-py/src/interop/context.rs:119
↓ 4 callersFunctiondecode_all
Collects a decoded IR stream, surfacing the first error instead of panicking.
crates/switchyard-translation/src/helpers.rs:280
↓ 4 callersFunctiondecode_request
Decodes a `wire_format` request body into the neutral IR.
crates/switchyard-translation/src/helpers.rs:31
↓ 4 callersFunctiondecode_stream_event
Decodes one provider stream event with the built-in codec registry.
crates/switchyard-translation/src/codecs/stream.rs:227
↓ 4 callersMethodencode_event
( &self, state: &mut StreamTranslationState, event: LlmResponseChunk, )
crates/switchyard-translation/src/codecs/anthropic/stream.rs:32
↓ 4 callersFunctionexact_preserved_request
Returns an exact preserved request for the target format when available.
crates/switchyard-translation/src/util.rs:251
↓ 4 callersFunctionexact_preserved_response
Returns an exact preserved response for the target format when available.
crates/switchyard-translation/src/util.rs:263
↓ 4 callersMethodexecute
Executes the processor/classifier/target-call sequence for wrappers and the trait entrypoint.
crates/libsy/src/algorithms/fall_through.rs:196
↓ 4 callersFunctionflushed_metrics
Flushes the metric pipeline and returns every exported snapshot.
crates/libsy/tests/observability.rs:215
↓ 4 callersMethodformat
(&self)
crates/switchyard-translation/tests/extension_points.rs:148
↓ 4 callersMethodfrom_headers
Extract request metadata from a case-insensitive header mapping.
switchyard/lib/request_metadata.py:50
↓ 4 callersMethodfrom_headers
Create Metadata
crates/protocol/src/metadata.rs:198
↓ 4 callersMethodgeneral_2_tier
General-purpose mixed traffic, conservative SIMPLE→weak mapping. Default-tier on abstain / low-confidence is ``strong`` (fail safer,
switchyard/lib/processors/llm_classifier/presets.py:325
↓ 4 callersMethodget_routed
The routed request the host should serve. Its [`default_client`](RoutedRequest::default_client) serves the call by default, and its `decision.selected
crates/libsy/src/core/algorithm.rs:125
↓ 4 callersMethodget_target
Look up a target by name; errors if no target has that name.
crates/libsy/src/core/algorithm.rs:386
↓ 4 callersFunctionheader
(headers: &'a http::HeaderMap, key: &str)
crates/protocol/src/metadata.rs:340
↓ 4 callersFunctioninternal_chain_error_response
Translate an unexpected chain failure into the client error envelope. Used when an exception escapes dispatch or response-processing that is not
switchyard/lib/endpoints/upstream_error.py:156
↓ 4 callersFunctioninvalid_record
(record: &'static str, reason: &str)
crates/switchyard-skill-distillation/src/model.rs:521
↓ 4 callersFunctionlatest_metric_value
Latest (max) value for a `switchyard`-scoped metric across snapshots, with `extract` pulling the matching data points' values out of one metric's aggr
crates/libsy/tests/observability.rs:246
↓ 4 callersFunctionlease_from_python
Leases the native context carried by a Python `ProxyContext`.
crates/switchyard-py/src/interop/context.rs:78
↓ 4 callersFunctionmake_completion
(*, model: str = "gpt-4o", content: str = "hello")
tests/test_switchyard.py:35
↓ 4 callersFunctionmetadata
(headers: &[(&str, &str)])
crates/protocol/src/metadata.rs:367
↓ 4 callersMethodmodel_listing_warnings
Return non-fatal model catalog warnings in discovery order.
switchyard/lib/route_table.py:153
↓ 4 callersMethodmodel_stats_mut
(&mut self, model: String)
crates/switchyard-components/src/stats/accumulator.rs:347
↓ 4 callersFunctionnamespace
()
crates/switchyard-skill-distillation/src/model.rs:532
↓ 4 callersFunctionnormalized_tier
(tier: Option<&str>)
crates/switchyard-server/src/stats/accumulator.rs:174
↓ 4 callersFunctionnoting_classifier
A classifier that hands the capable tier an escalation note, gated to signal-driven escalations.
crates/libsy/src/algorithms/util/stage.rs:755
↓ 4 callersFunctionopenai_target
()
crates/switchyard-components/src/backends/openai.rs:614
↓ 4 callersMethodopus_nemotron_super
Claude Opus 4.6 (strong) + Nemotron-3 Super v3 (weak). The flagship strong/weak pair — strong-signal reasoning from Opus for multi-st
switchyard/lib/profiles/random_routing_presets.py:156
↓ 4 callersMethodoutbound_body
(&self, request: &ChatRequest)
crates/switchyard-components/src/backends/openai.rs:99
↓ 4 callersFunctionpick_tier
Decide a turn's tier from its signal. The rules run in order; the first that fires wins: 1. **Escalate** — a hard reason to go capable (critical err
crates/libsy/src/algorithms/util/stage.rs:306
↓ 4 callersMethodpolicy_tier
(self)
switchyard/lib/processors/llm_classifier/signals.py:299
↓ 4 callersFunctionprefix_probe
Builds prefix fingerprints from a request body. Format-agnostic: `system`/`instructions`, then each `messages`/`input` turn.
crates/switchyard-components/src/stats/cache_eligibility.rs:64
↓ 4 callersFunctionprefix_probe
Builds format-agnostic prefix fingerprints from a request body.
crates/switchyard-server/src/stats/cache_eligibility.rs:61
↓ 4 callersFunctionprint_ready_banner
Write proxy/stats/routing details to stderr before the child takes over.
switchyard/cli/launchers/launcher_runtime.py:224
↓ 4 callersMethodprocess
(&self, _state: &mut S, event: Event<'_>)
crates/libsy/src/algorithms/util/affinity.rs:126
↓ 4 callersMethodrecord_classifier_error
Records one failed classifier or judge call.
crates/switchyard-server/src/stats/accumulator.rs:139
↓ 4 callersMethodregister
Registers or replaces a codec for its declared format.
crates/switchyard-translation/src/engine.rs:68
↓ 4 callersFunctionregistry
Returns the registry shared by every server router in this process.
crates/switchyard-server/src/metrics.rs:30
↓ 4 callersFunctionresolve_tool_capable_model
Pick a backend model that supports OpenAI-style tool calling. Some NVIDIA-hosted vLLM deployments (notably the ``nvidia/qwen/qwen3.5-*`` fami
tests/e2e/_helpers.py:18
↓ 4 callersMethodrespond
Fulfill the promise with the caller's model-call result. Pass `Err(..)` to propagate a failed model call back to the algorithm. Consumes the promise:
crates/libsy/src/core/algorithm.rs:142
↓ 4 callersFunctionresponse_is_streaming
Return whether a response carries a live stream.
switchyard_rust/core.py:754
↓ 4 callersFunctionresponses_target
Builds an OpenAI Responses target fixture.
crates/switchyard-components/tests/adversarial_native_backends.rs:97
↓ 4 callersMethodrestore
Restores the leased context into the Python wrapper.
crates/switchyard-py/src/interop/context.rs:126
↓ 4 callersMethodroute
( &self, state: &mut S, ctx: &Context, driver: &Driver, request: &mut
crates/libsy/src/algorithms/fall_through.rs:331
↓ 4 callersFunctionrouted_prompt_call
Routes one turn on a prompt test cascade and returns the recorded model call.
crates/libsy/src/algorithms/fall_through.rs:610
↓ 4 callersMethodselect
Select a target and return the routing decision dictionary.
switchyard/lib/processors/random_routing_request_processor.py:31
↓ 4 callersMethodselect
Selects a target without mutating a request.
crates/switchyard-components/src/request_processors/random_routing.rs:132
↓ 4 callersMethodselected_model
(&self)
crates/libsy/src/core/algorithm.rs:933
↓ 4 callersMethodselected_model
(&self)
crates/libsy/src/algorithms/noop.rs:25
↓ 4 callersMethodserve
Serves requests until the supplied shutdown future resolves.
crates/switchyard-server/src/lib.rs:305
↓ 4 callersMethodset_default_model
Mark *model* as the default entry advertised by ``/v1/models``.
switchyard/lib/route_table.py:91
↓ 4 callersFunctionshared_algorithm
(names: &[&str])
crates/libsy/src/algorithms/rand.rs:239
↓ 4 callersFunctionsignal_from
(messages: serde_json::Value)
crates/libsy/src/algorithms/util/stage.rs:530
↓ 4 callersFunctionslice_to_header_map
Utility to convert a slice of string pairs into an `http::HeaderMap`.
crates/protocol/src/metadata.rs:349
↓ 4 callersMethodsnapshot
Return a copy of the current counts; safe to publish.
switchyard/lib/processors/stage_router/decision_log.py:34
↓ 4 callersFunctionsubagent
(agent_id: &str, task_id: &str)
crates/libsy/src/algorithms/util/affinity.rs:275
↓ 4 callersFunctiontarget_set_with_overflow
`target_set`, but the named `overflowing` targets reject every call with a context-window error so the retry path can be driven.
crates/libsy/src/algorithms/fall_through.rs:887
↓ 4 callersMethodtargets
All targets in the set — e.g. for an algorithm to select among.
crates/libsy/src/core/algorithm.rs:381
↓ 4 callersMethodtier_stats_mut
(&mut self, tier: &str, model: &str)
crates/switchyard-server/src/stats/accumulator.rs:200
↓ 4 callersMethodtimeout
(&self)
crates/switchyard-py/src/component_bindings/config.rs:327
↓ 4 callersFunctiontrim_messages
Keeps the opening task and the last `recent_turn_window` turns after it. A window of `0` keeps the task alone. Inbound decoders normalize client syst
crates/libsy/src/algorithms/llm_class.rs:83
↓ 4 callersMethodvalue
(self)
crates/switchyard-components/src/stats/accumulator.rs:633
↓ 4 callersMethodwith_message_hash_fallback
Uses the first user-message text as a fallback key when metadata has no session.
crates/libsy/src/algorithms/util/affinity.rs:77
↓ 4 callersMethodwith_selected_model
Configures the model that the fake backend records in context.
crates/switchyard-components/tests/stats_processors.rs:71
↓ 4 callersMethodwith_supported_request_types
Overrides the advertised request types.
crates/switchyard-components/tests/adversarial_multi_llm_backend.rs:92
↓ 4 callersMethodwith_tier
Configures the route label that the fake backend records in context.
crates/switchyard-components/tests/stats_processors.rs:77
↓ 3 callersFunction_anthropic
(messages: list[dict[str, Any]], system: Any = None)
tests/test_anthropic_cache_breakpoint_backend.py:74
↓ 3 callersFunction_anthropic_events
()
tests/test_format_translate_processor.py:106
↓ 3 callersFunction_argmax_tier
Return the highest-scoring tier; ties resolve to the *stronger* tier. The "ties → stronger" rule is the safer side of the cost/quality trade-
switchyard/lib/processors/llm_classifier/signals.py:119
↓ 3 callersFunction_assert_eviction_stats
Pin the per-target attribution shape after a successful reroute.
tests/e2e/test_evict_reroute_e2e.py:92
← previousnext →401–500 of 4,886, ranked by callers