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

Function prerequisite_skip_reasons

examples/run_examples.py:287–301  ·  view source on GitHub ↗
(
    relpath: str,
    *,
    auto_mode: bool,
    env: Mapping[str, str],
)

Source from the content-addressed store, hash-verified

285
286
287def prerequisite_skip_reasons(
288 relpath: str,
289 *,
290 auto_mode: bool,
291 env: Mapping[str, str],
292) -> set[str]:
293 if not auto_mode:
294 return set()
295 if relpath != DAPR_SESSION_EXAMPLE:
296 return set()
297 if truthy_env_value(env.get("EXAMPLES_FORCE_DAPR")):
298 return set()
299 if dapr_sidecar_available(env):
300 return set()
301 return {"missing-dapr-sidecar"}
302
303
304def start_temporary_redis_server() -> TemporaryRedisServer | None:

Callers 1

run_examplesFunction · 0.85

Calls 3

truthy_env_valueFunction · 0.85
dapr_sidecar_availableFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected