MCPcopy
hub / github.com/openai/openai-agents-python / is_auto_mode

Function is_auto_mode

examples/auto_mode.py:14–16  ·  view source on GitHub ↗

Return True when examples should bypass interactive prompts.

()

Source from the content-addressed store, hash-verified

12
13
14def is_auto_mode() -> bool:
15 """Return True when examples should bypass interactive prompts."""
16 return os.environ.get("EXAMPLES_INTERACTIVE_MODE", "").lower() == "auto"
17
18
19def input_with_fallback(prompt: str, fallback: str) -> str:

Callers 15

_require_approvalMethod · 0.90
mainFunction · 0.90
prompt_shell_approvalFunction · 0.90
build_agentFunction · 0.90
mainFunction · 0.90
prompt_with_fallbackFunction · 0.90
run_interactive_loopFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected