MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / get_mode_config

Function get_mode_config

uncommon_route/router/config.py:92–93  ·  view source on GitHub ↗
(config: RoutingConfig, mode: RoutingMode)

Source from the content-addressed store, hash-verified

90
91
92def get_mode_config(config: RoutingConfig, mode: RoutingMode) -> ModeConfig:
93 return config.modes.get(mode, config.modes.get(RoutingMode.AUTO, ModeConfig()))
94
95
96def get_mode_tiers(config: RoutingConfig, mode: RoutingMode) -> dict[Tier, TierConfig]:

Callers 3

get_mode_tiersFunction · 0.85
get_selection_weightsFunction · 0.85
get_bandit_configFunction · 0.85

Calls 2

ModeConfigClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected