Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
554
def
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
561
def
load_auto_skip() -> set[str]:
Callers
1
run_examples
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected