dynamo.router

Request-router configuration and command-line argument groups.

以 Markdown 格式查看

dynamo.router publishes 3 classes and 4 functions. Source: components/src/dynamo/router/__init__.py

CLI argument group for standalone router options.

1from dynamo.router.args import DynamoRouterArgGroup

components/src/dynamo/router/args.py#L88

Public methods

add_arguments

1add_arguments(parser) -> None

Add router-owned arguments to parser.

source

Typed configuration for the standalone KV router (router-owned options only).

1from dynamo.router.args import DynamoRouterConfig

components/src/dynamo/router/args.py#L24

Public methods

validate

1validate() -> None

Validate config invariants (aligned with Rust KvRouterConfig where applicable).

source

Router search-space preparation and replay-spec materialization.

1from dynamo.router.simulation import DynamoRouterSweepConfigProvider

components/src/dynamo/router/simulation/provider.py#L132

Public methods

compile_prediction

1compile_prediction(config: Mapping[str, JSONValue], context: PredictionAdapterContext) -> AdapterReplaySpec

No summary available.

source

compile_recommendation

1compile_recommendation(config: Mapping[str, JSONValue], context: RecommendationAdapterContext) -> AdapterSearchPlan

No summary available.

source

materialize_candidate

1materialize_candidate(plan: AdapterSearchPlan, selection: Mapping[str, JSONValue], context: CandidateContext) -> AdapterReplaySpec

No summary available.

source

generate_search_space

1generate_search_space(search_spec: Mapping[str, JSONValue], context: SweepContext) -> AdapterSearchPlan

No summary available.

source

materialize_replay

1materialize_replay(plan: AdapterSearchPlan, selection: Mapping[str, JSONValue], context: CandidateContext) -> AdapterReplaySpec

No summary available.

source

No summary available.

1from dynamo.router.args import build_aic_perf_config
1build_aic_perf_config(router_config: DynamoRouterConfig) -> AicPerfConfig | None

components/src/dynamo/router/args.py#L135

Build KvRouterConfig from DynamoRouterConfig.

1from dynamo.router.args import build_kv_router_config
1build_kv_router_config(router_config: DynamoRouterConfig) -> KvRouterConfig

components/src/dynamo/router/args.py#L130

Create the entry-point registered Router sweep configuration provider.

1from dynamo.router.simulation import create_provider
1create_provider() -> DynamoRouterSweepConfigProvider

components/src/dynamo/router/simulation/provider.py#L417

Parse command-line arguments for the standalone router.

1from dynamo.router.args import parse_args
1parse_args(argv: Optional[list[str]] = None) -> DynamoRouterConfig

Returns

  • DynamoRouterConfig — Parsed and validated configuration.

components/src/dynamo/router/args.py#L143