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

Function merged_provider_profiles

crates/openshell-server/src/grpc/provider.rs:1550–1567  ·  view source on GitHub ↗
(store: &Store)

Source from the content-addressed store, hash-verified

1548}
1549
1550async fn merged_provider_profiles(store: &Store) -> Result<Vec<ProviderTypeProfile>, Status> {
1551 let mut profiles = default_profiles().to_vec();
1552 profiles.extend(
1553 custom_provider_profiles(store)
1554 .await?
1555 .into_iter()
1556 .filter_map(|stored| {
1557 let resource_version = stored_profile_resource_version(&stored);
1558 stored.profile.map(|profile| {
1559 ProviderTypeProfile::from_proto(&profile_response_payload(
1560 profile,
1561 resource_version,
1562 ))
1563 })
1564 }),
1565 );
1566 Ok(profiles)
1567}
1568
1569async fn custom_provider_profiles(store: &Store) -> Result<Vec<StoredProviderProfile>, Status> {
1570 let profiles: Vec<StoredProviderProfile> = store

Callers 1

Calls 5

default_profilesFunction · 0.85
custom_provider_profilesFunction · 0.85
from_protoFunction · 0.85
profile_response_payloadFunction · 0.85

Tested by

no test coverage detected