MCPcopy Create free account
hub / github.com/openai/openai-agents-python / truthy_env_value

Function truthy_env_value

examples/run_examples.py:265–266  ·  view source on GitHub ↗
(value: str | None)

Source from the content-addressed store, hash-verified

263
264
265def truthy_env_value(value: str | None) -> bool:
266 return value is not None and value.strip().lower() in {"1", "true", "yes", "on"}
267
268
269def dapr_sidecar_available(env: Mapping[str, str], timeout: float = 0.5) -> bool:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected