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

Function log

examples/tools/codex_same_thread.py:48–52  ·  view source on GitHub ↗
(message: str)

Source from the content-addressed store, hash-verified

46
47
48def log(message: str) -> None:
49 timestamp = _timestamp()
50 lines = str(message).splitlines() or [""]
51 for line in lines:
52 print(f"{timestamp} {line}")
53
54
55def read_context_value(context: Mapping[str, str] | BaseModel, key: str) -> str | None:

Callers 2

on_codex_streamFunction · 0.70
mainFunction · 0.70

Calls 1

_timestampFunction · 0.70

Tested by

no test coverage detected