Expand description
Shared configured routing for Switchyard serving surfaces.
Structs§
- Algorithm
Config Error - Error returned when an algorithm description cannot be constructed.
- Auxiliary
Target - Exact upstream model and client used for an auxiliary provider operation.
- Category
Model Config - Runtime model groups for a custom classifier, keyed by group name.
- Decision
Description - Fully resolved routing decision.
- Decision
Judge Route Config - Relative-advantage judgment using a decision model instead of an LLM prompt.
- Decision
Target - Non-secret configured target details returned by the decision endpoint.
- LlmClassifier
Route Config - Settings for an
llm_classifierroute. Which fields are required depends on theClassifierMode; using a field from the wrong mode is an error. - Model
Capabilities - Capabilities declared for one route.
- Model
Info - Borrowed model metadata returned while listing routes.
- Provider
KeyRedactor - Replaces configured provider keys without changing the credentials sent upstream.
- Route
- A configured algorithm and the per-target clients its calls resolve through.
- Route
Error Summary - Safe, structured terminal-failure data for routing telemetry.
- Routing
Outcome - The terminal result of routing.
- RunOutput
- The selected model and untouched response produced by a route execution.
- Runner
- Immutable named route table.
- Runtime
Models - The models one algorithm run may use, grouped by
Category. Within a category they are ordered best-first. - Stage
Classifier Config - The judge a
stage_routerroute falls through to, and how it routes. - VgrRoute
Config
Enums§
- Advisor
Trigger Config - What fires an advisor route’s review.
- Algorithm
Spec - A routing algorithm described by configured target names.
- Caller
Auth Kind - Caller credential family required by a forwarded-auth route.
- Classifier
Mode - Which of the three
llm_classifierbehaviors a route uses. - Classifier
Policy Config - How a custom classifier turns the judge’s JSON verdict into a target.
- Route
Error Kind - Stable class of a terminal route-execution failure.
- Route
Error Phase - When a terminal failure occurred relative to response delivery.
- Runner
Error - Error returned while loading or executing configured routes.
- Subagent
Route Config - Routing policy applied only to delegated sub-agent work, nested inside a
passthroughorstage_routerroute. - VgrMode
Config
Functions§
- api_
key_ variables - This function returns a deployment’s declared credential variable names without reading their values. It parses the deployment and checks its schema version before returning names from LLM and decision clients.
- stream_
error_ summary - Returns a safe telemetry summary for an error yielded by an active response stream.