dynamo.router

Request-router configuration and command-line argument groups.

View as 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#L79

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#L117

Public methods

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#L126

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#L121

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#L191

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#L134