MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / resolve

Method resolve

crates/openshell-router/src/config.rs:97–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 }
96
97 fn resolve(self) -> Result<Self, RouterError> {
98 // Validate that all routes can resolve their API keys
99 for route in &self.routes {
100 route.resolve_api_key()?;
101 }
102 Ok(self)
103 }
104
105 pub fn resolve_routes(&self) -> Result<Vec<ResolvedRoute>, RouterError> {
106 self.routes.iter().map(RouteConfig::resolve).collect()

Calls 4

normalize_protocolsFunction · 0.85
resolve_api_keyMethod · 0.80
is_emptyMethod · 0.45