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

Function artifact_dir_for_example

examples/run_examples.py:588–591  ·  view source on GitHub ↗

Return a deterministic scratch directory for one example run.

(relpath: str, artifacts_dir: Path)

Source from the content-addressed store, hash-verified

586
587
588def artifact_dir_for_example(relpath: str, artifacts_dir: Path) -> Path:
589 """Return a deterministic scratch directory for one example run."""
590 stem = normalize_relpath(str(Path(relpath).with_suffix("")))
591 return artifacts_dir / stem.replace("/", "__")
592
593
594def parse_rerun_from_log(log_path: Path) -> list[str]:

Callers 1

run_singleFunction · 0.85

Calls 1

normalize_relpathFunction · 0.85

Tested by

no test coverage detected