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

Function _write_text_file

examples/memory/dapr_session_example.py:435–438  ·  view source on GitHub ↗
(path: Path, content: str, overwrite: bool)

Source from the content-addressed store, hash-verified

433
434
435def _write_text_file(path: Path, content: str, overwrite: bool) -> None:
436 if path.exists() and not overwrite:
437 return
438 path.write_text(content, encoding="utf-8")
439
440
441def _docker_available() -> bool:

Callers 1

setup_environmentFunction · 0.85

Calls 2

write_textMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected