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

Function _optional_bool

switchyard/cli/route_bundle.py:1359–1364  ·  view source on GitHub ↗
(value: object, default: bool)

Source from the content-addressed store, hash-verified

1357
1358
1359def _optional_bool(value: object, default: bool) -> bool:
1360 if value is None:
1361 return default
1362 if not isinstance(value, bool):
1363 raise RouteBundleConfigError(f"expected boolean, got {type(value).__name__}")
1364 return value
1365
1366
1367__all__ = [

Callers 4

_subagent_worker_runtimeFunction · 0.85
_build_route_chainFunction · 0.85

Calls 1

Tested by

no test coverage detected