MCPcopy Index your code

hub / github.com/vllm-project/semantic-router / types & classes

Types & classes3,388 in github.com/vllm-project/semantic-router

↓ 193 callersStructContext
Context carries the per-request information needed for rate limit evaluation.
src/semantic-router/pkg/ratelimit/provider.go:45
↓ 175 callersClassTaskTurn
bench/agent_task_live_benchmark.py:44
↓ 32 callersClassServingConfig
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 callersClassTaskSpec
bench/agent_task_live_benchmark.py:53
↓ 30 callersClassValidationError
Validation error.
src/vllm-sr/cli/validation_error.py:4
↓ 26 callersClassFleetOptimizer
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 callersClassConfigImportError
Raised when an import source cannot be converted safely.
src/vllm-sr/cli/config_import.py:27
↓ 23 callersClassPoolConfig
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 callersClassCdfWorkload
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 callersClassDatasetInfo
Dataset metadata and configuration information. Attributes: name: Dataset name (e.g., "GPQA-Main", "ARC-Challenge") descript
bench/reasoning/dataset_interface.py:46
↓ 18 callersClassSignalFamilySpec
Canonical inventory for one routing signal family.
src/vllm-sr/cli/config_contract.py:54
↓ 17 callersClassPoissonWorkload
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 callersClassFleet
Event-driven fleet simulation. Usage ----- :: cfg = FleetConfig(pools=[PoolConfig(...)], router_type="LengthRouter",
src/fleet-sim/fleet_sim/core/fleet.py:69
↓ 16 callersClassFleetConfig
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 callersClassQuestion
Standardized question representation for multi-choice reasoning tasks. Attributes: question_id: Unique identifier for the question
bench/reasoning/dataset_interface.py:22
↓ 15 callersStructTextContent
TextContent represents text content
src/semantic-router/pkg/mcp/types.go:147
↓ 13 callersClassAlgorithmConfig
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 callersClassDualTaskDataset
Dataset for dual-task learning with category classification and PII detection.
src/training/model_experiment/dual_classifier/trainer.py:14
↓ 11 callersStructEntry
Entry holds a single lookup value together with provenance metadata.
src/semantic-router/pkg/selection/lookuptable/table.go:151
↓ 10 callersClassConfigParseError
Configuration parsing error.
src/vllm-sr/cli/parser.py:20
↓ 10 callersClassFinding
tools/agent/scripts/structure_check.py:66
↓ 10 callersClassModelSpec
Self-contained model architecture description used by fleet-sim.
src/fleet-sim/fleet_sim/models/spec.py:54
↓ 9 callersClassDisaggFleetOptimizer
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 callersClassFailureClassification
tools/agent/scripts/tuning/engine.py:35
↓ 9 callersTypeAliasMemoryType
MemoryType represents the category of a memory in the agentic memory system.
src/semantic-router/pkg/memory/types.go:10
↓ 9 callersClassProfileBuilder
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 callersClassRAGPluginConfig
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 callersClassWorkloadRef
src/fleet-sim/fleet_sim/api/models.py:124
↓ 8 callersClassHardwareSpec
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 callersClassDockerBackend
DeploymentBackend implementation for local Docker workflows.
src/vllm-sr/cli/docker_backend.py:15
↓ 7 callersClassDualClassifier
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 callersClassDualTaskTrainer
Trainer for the dual-purpose classifier.
src/training/model_experiment/dual_classifier/trainer.py:113
↓ 7 callersClassLabelingConfig
Configuration for production labeling.
src/training/model_classifier/user_feedback_classifier/data_processing/download_datasets.py:58
↓ 7 callersClassResult
src/vllm-sr/tests/test_docker_runtime.py:31
↓ 6 callersClassEloSelectionConfig
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 callersClassPoolConfigIn
src/fleet-sim/fleet_sim/api/models.py:88
↓ 6 callersClassSessionAwareSelectionConfig
Configuration for session-aware agentic model selection.
src/vllm-sr/cli/algorithms.py:232
↓ 6 callersClassSyntheticDataGenerator
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 callersStructTool
Tool defines a tool function
deploy/operator/api/v1alpha1/semanticrouter_types.go:1503
↓ 6 callersClassTraceLeaf
tools/agent/scripts/tuning/engine.py:26
↓ 6 callersClassWorkloadScenario
bench/agentic_routing_experiment.py:33
↓ 5 callersClassBootstrapResult
Result of ensuring bootstrap workspace state.
src/vllm-sr/cli/bootstrap.py:22
↓ 5 callersClassFix
tools/agent/scripts/tuning/engine.py:49
↓ 5 callersClassFleetConfigIn
src/fleet-sim/fleet_sim/api/models.py:97
↓ 5 callersClassGMTRouterConfig
Configuration for GMTRouter (Graph-based) model selection. Uses heterogeneous GNN for personalized routing decisions.
src/vllm-sr/cli/algorithms.py:327
↓ 5 callersClassHistogramBucket
src/fleet-sim/fleet_sim/api/models.py:34
↓ 5 callersClassManualProfile
GPU performance profile with directly specified constants. Parameters ---------- name : human-readable label W
src/fleet-sim/fleet_sim/gpu_profiles/manual.py:15
↓ 5 callersClassOfflineAnalyzer
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 callersTypeAliasQueryModality
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 callersClassTaskSpec
src/training/model_classifier/verify_text_classification_datasets.py:177
↓ 5 callersClassTraceStats
src/fleet-sim/fleet_sim/api/models.py:40
↓ 4 callersClassAgenticDecision
bench/agentic_routing_experiment.py:54
↓ 4 callersClassDualTaskLoss
Combined loss function for dual-task learning.
src/training/model_experiment/dual_classifier/trainer.py:64
↓ 4 callersClassHallucinationDataset
PyTorch Dataset for hallucination detection.
src/training/model_classifier/hallucination_detection_classifier/finetune.py:101
↓ 4 callersClassLLMDescriptor
Descriptor for an LLM in the routing pool.
src/training/model_selection/rl_model_selection/router_r1_server.py:42
↓ 4 callersClassMultitaskTrainer
src/training/model_experiment/multitask_wiki_classifier_training.py:143
↓ 4 callersClassReMoMAlgorithmConfig
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 callersClassRequest
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 callersClassRouterDCSelectionConfig
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 callersTypeAliasSelectionMethod
SelectionMethod defines the type of model selection algorithm
src/semantic-router/pkg/selection/selector.go:36
↓ 4 callersClass_StubBackend
src/vllm-sr/tests/test_cli_main.py:100
↓ 3 callersClassAutoMixSelectionConfig
Configuration for AutoMix (POMDP-based) model selection. Optimizes cost-quality tradeoff using Partially Observable MDP.
src/vllm-sr/cli/algorithms.py:182
↓ 3 callersClassCalibrationScenario
tools/agent/scripts/tuning/scenarios/calibration.py:46
↓ 3 callersTypeAliasDependencyType
DependencyType classifies external dependencies
src/semantic-router/pkg/selection/selector.go:115
↓ 3 callersClassFleetConfigOut
src/fleet-sim/fleet_sim/api/models.py:107
↓ 3 callersClassHallucinationSample
A single sample for hallucination detection evaluation.
bench/hallucination/datasets.py:23
↓ 3 callersClassHybridSelectionConfig
Configuration for Hybrid model selection. Combines multiple selection methods with configurable weights.
src/vllm-sr/cli/algorithms.py:207
↓ 3 callersClassJudgeVote
src/training/model_classifier/verify_text_classification_datasets.py:196
↓ 3 callersClassModelProfile
bench/agentic_routing_experiment.py:24
↓ 3 callersClassPromptFormatter
Utility class for formatting prompts consistently across datasets.
bench/reasoning/dataset_interface.py:120
↓ 3 callersClassRLDrivenSelectionConfig
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 callersStructServer
Server represents a gRPC server for the Envoy ExtProc
src/semantic-router/pkg/extproc/server.go:56
↓ 3 callersClassTraceInfo
src/fleet-sim/fleet_sim/api/models.py:56
↓ 3 callersClassTrainer
Trainer for hallucination detection with per-epoch benchmark evaluation.
src/training/model_classifier/hallucination_detection_classifier/finetune.py:355
↓ 3 callersClassTrainingSample
A training sample for model selection.
src/training/model_selection/ml_model_selection/models.py:37
↓ 2 callersTypeAliasAlgorithmTier
AlgorithmTier classifies algorithms by production readiness
src/semantic-router/pkg/selection/selector.go:103
↓ 2 callersTypeAliasCacheBackendType
CacheBackendType defines the available cache backend implementations
src/semantic-router/pkg/cache/cache_interface.go:93
↓ 2 callersClassConsistencyDataset
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 callersClassDataConfig
Data processing configuration.
src/training/model_classifier/user_feedback_classifier/configs/config.py:23
↓ 2 callersClassFakeResp
src/vllm-sr/tests/test_eval_command.py:125
↓ 2 callersClassFeedbackResult
Result from feedback classification.
src/training/model_classifier/user_feedback_classifier/inference_feedback.py:29
↓ 2 callersClassFleetSimResult
Aggregated metrics from a completed fleet simulation.
src/fleet-sim/fleet_sim/core/fleet.py:208
↓ 2 callersClassIncomplete
tools/agent/scripts/tuning/tests/test_framework.py:153
↓ 2 callersClassInteractionDataset
Dataset for user-LLM interactions.
src/training/model_selection/rl_model_selection/train_gmtrouter.py:335
↓ 2 callersClassModelConfig
Configuration for a single model.
src/training/model_selection/ml_model_selection/benchmark.py:86
↓ 2 callersClassMultiFactorSelectionConfig
Configuration for the canonical multi_factor selector.
src/vllm-sr/cli/algorithms.py:279
↓ 2 callersClassMultitaskDataset
src/training/model_experiment/multitask_wiki_classifier_training.py:116
↓ 2 callersClassMultitaskDataset
Dataset class for multitask learning.
src/training/model_experiment/multitask_bert_fine_tuning/multitask_bert_training.py:92
↓ 2 callersClassMultitaskTrainer
Trainer for multitask BERT model.
src/training/model_experiment/multitask_bert_fine_tuning/multitask_bert_training.py:131
↓ 2 callersTypeAliasNLILabel
================================================================================================ HALLUCINATION DETECTION GO BINDINGS (Token-level Dete
candle-binding/semantic-router.go:2684
↓ 2 callersClassPipelineConfig
Complete pipeline configuration.
src/training/model_classifier/user_feedback_classifier/configs/config.py:105
↓ 2 callersClassPluginConfig
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 callersClassPrivacyScenario
tools/agent/scripts/tuning/scenarios/privacy.py:26
↓ 2 callersClassProgressReporter
Thread-safe progress reporter that queues SSE events.
src/training/model_selection/ml_model_selection/server.py:110
↓ 2 callersClassReasoningModeMetrics
Metrics for a single reasoning mode evaluation.
bench/reasoning/reasoning_mode_eval.py:57
↓ 2 callersClassReportArtifactWriteResult
tools/agent/scripts/agent_artifacts.py:19
↓ 2 callersStructResponse
Response contains the output from looper execution
src/semantic-router/pkg/looper/looper.go:55
↓ 2 callersClassRouterReplayPluginConfig
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 callersClassRoutingDataset
Dataset for router training.
src/training/model_selection/rl_model_selection/train_router_r1.py:128
↓ 2 callersClassScanResult
tools/security/ast_security_scanner.py:130
next →1–100 of 3,388, ranked by callers