Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/vllm-project/semantic-router
/ types & classes
Types & classes
3,388 in github.com/vllm-project/semantic-router
⨍
Functions
18,219
◇
Types & classes
3,388
↳
Endpoints
64
↓ 193 callers
Struct
Context
Context carries the per-request information needed for rate limit evaluation.
src/semantic-router/pkg/ratelimit/provider.go:45
↓ 175 callers
Class
TaskTurn
bench/agent_task_live_benchmark.py:44
↓ 32 callers
Class
ServingConfig
How a model is deployed on a set of GPUs. Attributes ---------- tp : tensor parallelism degree (GPUs per instance)
src/fleet-sim/fleet_sim/gpu_profiles/builder.py:50
↓ 32 callers
Class
TaskSpec
bench/agent_task_live_benchmark.py:53
↓ 30 callers
Class
ValidationError
Validation error.
src/vllm-sr/cli/validation_error.py:4
↓ 26 callers
Class
FleetOptimizer
Find minimum-cost (n_s, n_l, gamma) fleet meeting a P99 TTFT SLO. Parameters ---------- gpu_short : GPU type for short-context poo
src/fleet-sim/fleet_sim/optimizer/base.py:138
↓ 24 callers
Class
ConfigImportError
Raised when an import source cannot be converted safely.
src/vllm-sr/cli/config_import.py:27
↓ 23 callers
Class
PoolConfig
Static specification for one pool in the fleet. Parameters ---------- pool_id : unique name (e.g. "short", "long") gpu
src/fleet-sim/fleet_sim/core/fleet.py:20
↓ 18 callers
Class
CdfWorkload
Sample request lengths from an empirical CDF. Supports a JSON file containing either: {"cdf": [[token_threshold, cumulative_frac], ...]}
src/fleet-sim/fleet_sim/workload/synthetic.py:17
↓ 18 callers
Class
DatasetInfo
Dataset metadata and configuration information. Attributes: name: Dataset name (e.g., "GPQA-Main", "ARC-Challenge") descript
bench/reasoning/dataset_interface.py:46
↓ 18 callers
Class
SignalFamilySpec
Canonical inventory for one routing signal family.
src/vllm-sr/cli/config_contract.py:54
↓ 17 callers
Class
PoissonWorkload
Generate a Poisson arrival stream of requests. Parameters ---------- lam : arrival rate (requests per second) length_gen : Cdf
src/fleet-sim/fleet_sim/workload/synthetic.py:92
↓ 16 callers
Class
Fleet
Event-driven fleet simulation. Usage ----- :: cfg = FleetConfig(pools=[PoolConfig(...)], router_type="LengthRouter",
src/fleet-sim/fleet_sim/core/fleet.py:69
↓ 16 callers
Class
FleetConfig
Full fleet configuration. Parameters ---------- pools : ordered list of pool specs (router sees them in this order) router_typ
src/fleet-sim/fleet_sim/core/fleet.py:42
↓ 15 callers
Class
Question
Standardized question representation for multi-choice reasoning tasks. Attributes: question_id: Unique identifier for the question
bench/reasoning/dataset_interface.py:22
↓ 15 callers
Struct
TextContent
TextContent represents text content
src/semantic-router/pkg/mcp/types.go:147
↓ 13 callers
Class
AlgorithmConfig
Algorithm configuration for multi-model decisions. Specifies how multiple models in a decision should be orchestrated. Supports three catego
src/vllm-sr/cli/algorithms.py:361
↓ 12 callers
Class
DualTaskDataset
Dataset for dual-task learning with category classification and PII detection.
src/training/model_experiment/dual_classifier/trainer.py:14
↓ 11 callers
Struct
Entry
Entry holds a single lookup value together with provenance metadata.
src/semantic-router/pkg/selection/lookuptable/table.go:151
↓ 10 callers
Class
ConfigParseError
Configuration parsing error.
src/vllm-sr/cli/parser.py:20
↓ 10 callers
Class
Finding
tools/agent/scripts/structure_check.py:66
↓ 10 callers
Class
ModelSpec
Self-contained model architecture description used by fleet-sim.
src/fleet-sim/fleet_sim/models/spec.py:54
↓ 9 callers
Class
DisaggFleetOptimizer
Find the optimal xP + yD disaggregated fleet configuration. Parameters ---------- prefill_profile : GpuProfile for prefill (context) work
src/fleet-sim/fleet_sim/optimizer/disagg.py:101
↓ 9 callers
Class
FailureClassification
tools/agent/scripts/tuning/engine.py:35
↓ 9 callers
TypeAlias
MemoryType
MemoryType represents the category of a memory in the agentic memory system.
src/semantic-router/pkg/memory/types.go:10
↓ 9 callers
Class
ProfileBuilder
Compute W, H, and KV-cache capacity from hardware + model + serving config. Usage:: from fleet_sim.hardware import H100_SXM from
src/fleet-sim/fleet_sim/gpu_profiles/builder.py:176
↓ 9 callers
Class
RAGPluginConfig
Configuration for RAG (Retrieval-Augmented Generation) plugin. The RAG plugin retrieves relevant context from external knowledge bases and in
src/vllm-sr/cli/models.py:694
↓ 9 callers
Class
WorkloadRef
src/fleet-sim/fleet_sim/api/models.py:124
↓ 8 callers
Class
HardwareSpec
Physical constants for one GPU type. All bandwidth and capacity values are raw hardware specs; the ``effective_mem_bw`` property applies the
src/fleet-sim/fleet_sim/hardware/spec.py:28
↓ 7 callers
Class
DockerBackend
DeploymentBackend implementation for local Docker workflows.
src/vllm-sr/cli/docker_backend.py:15
↓ 7 callers
Class
DualClassifier
A dual-purpose classifier using DistilBERT for both category classification and PII detection. This model uses a shared DistilBERT backbone
src/training/model_experiment/dual_classifier/dual_classifier.py:9
↓ 7 callers
Class
DualTaskTrainer
Trainer for the dual-purpose classifier.
src/training/model_experiment/dual_classifier/trainer.py:113
↓ 7 callers
Class
LabelingConfig
Configuration for production labeling.
src/training/model_classifier/user_feedback_classifier/data_processing/download_datasets.py:58
↓ 7 callers
Class
Result
src/vllm-sr/tests/test_docker_runtime.py:31
↓ 6 callers
Class
EloSelectionConfig
Configuration for Elo rating-based model selection. Uses Bradley-Terry model for pairwise comparisons, learning from user feedback.
src/vllm-sr/cli/algorithms.py:123
↓ 6 callers
Class
PoolConfigIn
src/fleet-sim/fleet_sim/api/models.py:88
↓ 6 callers
Class
SessionAwareSelectionConfig
Configuration for session-aware agentic model selection.
src/vllm-sr/cli/algorithms.py:232
↓ 6 callers
Class
SyntheticDataGenerator
Generate synthetic data for testing dual-task training. Creates both category classification and PII detection labels.
src/training/model_experiment/dual_classifier/data_generator.py:8
↓ 6 callers
Struct
Tool
Tool defines a tool function
deploy/operator/api/v1alpha1/semanticrouter_types.go:1503
↓ 6 callers
Class
TraceLeaf
tools/agent/scripts/tuning/engine.py:26
↓ 6 callers
Class
WorkloadScenario
bench/agentic_routing_experiment.py:33
↓ 5 callers
Class
BootstrapResult
Result of ensuring bootstrap workspace state.
src/vllm-sr/cli/bootstrap.py:22
↓ 5 callers
Class
Fix
tools/agent/scripts/tuning/engine.py:49
↓ 5 callers
Class
FleetConfigIn
src/fleet-sim/fleet_sim/api/models.py:97
↓ 5 callers
Class
GMTRouterConfig
Configuration for GMTRouter (Graph-based) model selection. Uses heterogeneous GNN for personalized routing decisions.
src/vllm-sr/cli/algorithms.py:327
↓ 5 callers
Class
HistogramBucket
src/fleet-sim/fleet_sim/api/models.py:34
↓ 5 callers
Class
ManualProfile
GPU performance profile with directly specified constants. Parameters ---------- name : human-readable label W
src/fleet-sim/fleet_sim/gpu_profiles/manual.py:15
↓ 5 callers
Class
OfflineAnalyzer
Analytical threshold optimization using cached traces (no live router). Constructor args: severity_fn: (item) -> int, severity weight for
tools/agent/scripts/tuning/analyzer.py:29
↓ 5 callers
TypeAlias
QueryModality
QueryModality declares which modality of incoming request payload the embedding rule's query is computed from. The candidates remain text in every cas
src/semantic-router/pkg/config/signal_config.go:73
↓ 5 callers
Class
TaskSpec
src/training/model_classifier/verify_text_classification_datasets.py:177
↓ 5 callers
Class
TraceStats
src/fleet-sim/fleet_sim/api/models.py:40
↓ 4 callers
Class
AgenticDecision
bench/agentic_routing_experiment.py:54
↓ 4 callers
Class
DualTaskLoss
Combined loss function for dual-task learning.
src/training/model_experiment/dual_classifier/trainer.py:64
↓ 4 callers
Class
HallucinationDataset
PyTorch Dataset for hallucination detection.
src/training/model_classifier/hallucination_detection_classifier/finetune.py:101
↓ 4 callers
Class
LLMDescriptor
Descriptor for an LLM in the routing pool.
src/training/model_selection/rl_model_selection/router_r1_server.py:42
↓ 4 callers
Class
MultitaskTrainer
src/training/model_experiment/multitask_wiki_classifier_training.py:143
↓ 4 callers
Class
ReMoMAlgorithmConfig
Configuration for ReMoM (Reasoning for Mixture of Models) algorithm. This algorithm performs multi-round parallel reasoning with intelligent synt
src/vllm-sr/cli/algorithms.py:60
↓ 4 callers
Class
Request
One inference request flowing through the fleet. Attributes ---------- req_id : globally unique request identifier arrival_time
src/fleet-sim/fleet_sim/core/request.py:18
↓ 4 callers
Class
RouterDCSelectionConfig
Configuration for RouterDC (Dual-Contrastive) model selection. Matches queries to models using embedding similarity based on model descriptions.
src/vllm-sr/cli/algorithms.py:154
↓ 4 callers
TypeAlias
SelectionMethod
SelectionMethod defines the type of model selection algorithm
src/semantic-router/pkg/selection/selector.go:36
↓ 4 callers
Class
_StubBackend
src/vllm-sr/tests/test_cli_main.py:100
↓ 3 callers
Class
AutoMixSelectionConfig
Configuration for AutoMix (POMDP-based) model selection. Optimizes cost-quality tradeoff using Partially Observable MDP.
src/vllm-sr/cli/algorithms.py:182
↓ 3 callers
Class
CalibrationScenario
tools/agent/scripts/tuning/scenarios/calibration.py:46
↓ 3 callers
TypeAlias
DependencyType
DependencyType classifies external dependencies
src/semantic-router/pkg/selection/selector.go:115
↓ 3 callers
Class
FleetConfigOut
src/fleet-sim/fleet_sim/api/models.py:107
↓ 3 callers
Class
HallucinationSample
A single sample for hallucination detection evaluation.
bench/hallucination/datasets.py:23
↓ 3 callers
Class
HybridSelectionConfig
Configuration for Hybrid model selection. Combines multiple selection methods with configurable weights.
src/vllm-sr/cli/algorithms.py:207
↓ 3 callers
Class
JudgeVote
src/training/model_classifier/verify_text_classification_datasets.py:196
↓ 3 callers
Class
ModelProfile
bench/agentic_routing_experiment.py:24
↓ 3 callers
Class
PromptFormatter
Utility class for formatting prompts consistently across datasets.
bench/reasoning/dataset_interface.py:120
↓ 3 callers
Class
RLDrivenSelectionConfig
Configuration for the canonical rl_driven selection algorithm. Matches decision.algorithm.rl_driven in the router config contract.
src/vllm-sr/cli/algorithms.py:299
↓ 3 callers
Struct
Server
Server represents a gRPC server for the Envoy ExtProc
src/semantic-router/pkg/extproc/server.go:56
↓ 3 callers
Class
TraceInfo
src/fleet-sim/fleet_sim/api/models.py:56
↓ 3 callers
Class
Trainer
Trainer for hallucination detection with per-epoch benchmark evaluation.
src/training/model_classifier/hallucination_detection_classifier/finetune.py:355
↓ 3 callers
Class
TrainingSample
A training sample for model selection.
src/training/model_selection/ml_model_selection/models.py:37
↓ 2 callers
TypeAlias
AlgorithmTier
AlgorithmTier classifies algorithms by production readiness
src/semantic-router/pkg/selection/selector.go:103
↓ 2 callers
TypeAlias
CacheBackendType
CacheBackendType defines the available cache backend implementations
src/semantic-router/pkg/cache/cache_interface.go:93
↓ 2 callers
Class
ConsistencyDataset
Dataset that returns PAIRS of (clean, typo) versions for consistency training.
src/training/model_classifier/classifier_model_fine_tuning_lora/ft_linear_lora_consistency.py:301
↓ 2 callers
Class
DataConfig
Data processing configuration.
src/training/model_classifier/user_feedback_classifier/configs/config.py:23
↓ 2 callers
Class
FakeResp
src/vllm-sr/tests/test_eval_command.py:125
↓ 2 callers
Class
FeedbackResult
Result from feedback classification.
src/training/model_classifier/user_feedback_classifier/inference_feedback.py:29
↓ 2 callers
Class
FleetSimResult
Aggregated metrics from a completed fleet simulation.
src/fleet-sim/fleet_sim/core/fleet.py:208
↓ 2 callers
Class
Incomplete
tools/agent/scripts/tuning/tests/test_framework.py:153
↓ 2 callers
Class
InteractionDataset
Dataset for user-LLM interactions.
src/training/model_selection/rl_model_selection/train_gmtrouter.py:335
↓ 2 callers
Class
ModelConfig
Configuration for a single model.
src/training/model_selection/ml_model_selection/benchmark.py:86
↓ 2 callers
Class
MultiFactorSelectionConfig
Configuration for the canonical multi_factor selector.
src/vllm-sr/cli/algorithms.py:279
↓ 2 callers
Class
MultitaskDataset
src/training/model_experiment/multitask_wiki_classifier_training.py:116
↓ 2 callers
Class
MultitaskDataset
Dataset class for multitask learning.
src/training/model_experiment/multitask_bert_fine_tuning/multitask_bert_training.py:92
↓ 2 callers
Class
MultitaskTrainer
Trainer for multitask BERT model.
src/training/model_experiment/multitask_bert_fine_tuning/multitask_bert_training.py:131
↓ 2 callers
TypeAlias
NLILabel
================================================================================================ HALLUCINATION DETECTION GO BINDINGS (Token-level Dete
candle-binding/semantic-router.go:2684
↓ 2 callers
Class
PipelineConfig
Complete pipeline configuration.
src/training/model_classifier/user_feedback_classifier/configs/config.py:105
↓ 2 callers
Class
PluginConfig
Plugin configuration with type validation. Configuration schema validation is performed in the validator module to ensure proper plugin-speci
src/vllm-sr/cli/models.py:786
↓ 2 callers
Class
PrivacyScenario
tools/agent/scripts/tuning/scenarios/privacy.py:26
↓ 2 callers
Class
ProgressReporter
Thread-safe progress reporter that queues SSE events.
src/training/model_selection/ml_model_selection/server.py:110
↓ 2 callers
Class
ReasoningModeMetrics
Metrics for a single reasoning mode evaluation.
bench/reasoning/reasoning_mode_eval.py:57
↓ 2 callers
Class
ReportArtifactWriteResult
tools/agent/scripts/agent_artifacts.py:19
↓ 2 callers
Struct
Response
Response contains the output from looper execution
src/semantic-router/pkg/looper/looper.go:55
↓ 2 callers
Class
RouterReplayPluginConfig
Configuration for router_replay plugin. The router_replay plugin captures routing decisions and payload snippets for later debugging and repl
src/vllm-sr/cli/models.py:650
↓ 2 callers
Class
RoutingDataset
Dataset for router training.
src/training/model_selection/rl_model_selection/train_router_r1.py:128
↓ 2 callers
Class
ScanResult
tools/security/ast_security_scanner.py:130
next →
1–100 of 3,388, ranked by callers