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

Function default_profiles

crates/openshell-providers/src/profiles.rs:1702–1709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1700
1701#[must_use]
1702pub fn default_profiles() -> &'static [ProviderTypeProfile] {
1703 DEFAULT_PROFILES
1704 .get_or_init(|| {
1705 parse_profile_catalog_yamls(BUILT_IN_PROFILE_YAMLS)
1706 .expect("built-in provider profiles must be valid YAML")
1707 })
1708 .as_slice()
1709}
1710
1711#[must_use]
1712pub fn get_default_profile(id: &str) -> Option<&'static ProviderTypeProfile> {

Callers 5

merged_provider_profilesFunction · 0.85
profilesMethod · 0.85
get_default_profileFunction · 0.85

Calls 2

as_sliceMethod · 0.80

Tested by 2