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

Function python_path

crates/core/src/plugins/nemo_guardrails/python.rs:693–701  ·  view source on GitHub ↗
(config: &NeMoGuardrailsConfig)

Source from the content-addressed store, hash-verified

691}
692
693fn python_path(config: &NeMoGuardrailsConfig) -> Option<String> {
694 config
695 .local
696 .as_ref()
697 .and_then(|local| local.python_path.as_deref())
698 .map(str::trim)
699 .filter(|value| !value.is_empty())
700 .map(str::to_string)
701}
702
703fn worker_python_path(config: &NeMoGuardrailsConfig) -> Option<OsString> {
704 let configured = python_path(config)?;

Callers 1

worker_python_pathFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected