← Về thư mục
openai4s/replay.py
- ReplayDrift · class · L60-L61 — class ReplayDrift(RuntimeError)
- _JsonSafe · class · L64-L89 — class _JsonSafe
- coerce · method · L68-L89 — def coerce(obj: Any) -> Any
- TapeRecorder · class · L92-L117 — class TapeRecorder
- init · method · L95-L97 — def init(self, tape_path: str | Path)
- record · method · L99-L108 — def record(self, method: str, args: list, result: Any) -> None
- flush · method · L110-L117 — def flush(self) -> Path
- _OpenAI4SReplay · class · L120-L167 — class _OpenAI4SReplay
- init · method · L129-L131 — def init(self, tape: list[dict])
- _next · method · L133-L160 — def _next(self, method: str) -> Any: # Check BEFORE consuming: a method mismatch must not advance the tape # position, or every subsequent SDK call is off by one.
- getattr · method · L163-L167 — def getattr(self, method: str)
- _call · function · L164-L165 — def _call(args, *kwargs): # noqa: ANN001, ANN002
- _decode · function · L170-L183 — def _decode(value: Any) -> Any
- load_tape · function · L186-L188 — def load_tape(tape_path: str | Path) -> list[dict]
- make_replay · function · L191-L192 — def make_replay(tape_path: str | Path) -> _OpenAI4SReplay