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

Function required_material

crates/openshell-server/src/provider_refresh.rs:663–666  ·  view source on GitHub ↗
(material: &HashMap<String, String>, key: &str)

Source from the content-addressed store, hash-verified

661}
662
663fn required_material(material: &HashMap<String, String>, key: &str) -> Result<String, Status> {
664 material_value(material, &[key])
665 .ok_or_else(|| Status::invalid_argument(format!("{key} material is required")))
666}
667
668fn material_value(material: &HashMap<String, String>, keys: &[&str]) -> Option<String> {
669 for key in keys {

Calls 1

material_valueFunction · 0.85

Tested by

no test coverage detected