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

Function env_flag

examples/run_examples.py:554–558  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

552
553
554def env_flag(name: str) -> bool | None:
555 raw = os.environ.get(name)
556 if raw is None:
557 return None
558 return raw.strip().lower() in {"1", "true", "yes", "on"}
559
560
561def load_auto_skip() -> set[str]:

Callers 1

run_examplesFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected