MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / _optional_str

Function _optional_str

switchyard/cli/route_bundle.py:1327–1332  ·  view source on GitHub ↗
(value: object)

Source from the content-addressed store, hash-verified

1325
1326
1327def _optional_str(value: object) -> str | None:
1328 if value is None:
1329 return None
1330 if not isinstance(value, str):
1331 raise RouteBundleConfigError(f"expected string, got {type(value).__name__}")
1332 return value
1333
1334
1335@overload

Callers 3

_judge_prompt_valueFunction · 0.85
_route_metadataFunction · 0.85

Calls 1

Tested by

no test coverage detected