MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / plugin_component_totals

Function plugin_component_totals

crates/core/src/plugin.rs:1328–1334  ·  view source on GitHub ↗
(config: &PluginConfig)

Source from the content-addressed store, hash-verified

1326}
1327
1328fn plugin_component_totals(config: &PluginConfig) -> HashMap<&str, usize> {
1329 let mut totals = HashMap::new();
1330 for component in &config.components {
1331 *totals.entry(component.kind.as_str()).or_insert(0) += 1;
1332 }
1333 totals
1334}
1335
1336fn component_namespace(kind: &str, ordinal: usize, total: usize) -> String {
1337 if total > 1 {

Calls 1

as_strMethod · 0.45