core-agent-ide/codex-rs/codex-client
pakrym-oai 7078a0b676
Log compaction request bodies (#8676)
We already log request bodies for normal requests, logging for
compaction helps with debugging.
2026-01-02 11:27:37 -08:00
..
src Log compaction request bodies (#8676) 2026-01-02 11:27:37 -08:00
Cargo.toml [codex] add otel tracing (#7844) 2025-12-12 17:07:17 -08:00
README.md chore: proper client extraction (#6996) 2025-11-25 18:06:12 +00:00

codex-client

Generic transport layer that wraps HTTP requests, retries, and streaming primitives without any Codex/OpenAI awareness.

  • Defines HttpTransport and a default ReqwestTransport plus thin Request/Response types.
  • Provides retry utilities (RetryPolicy, RetryOn, run_with_retry, backoff) that callers plug into for unary and streaming calls.
  • Supplies the sse_stream helper to turn byte streams into raw SSE data: frames with idle timeouts and surfaced stream errors.
  • Consumed by higher-level crates like codex-api; it stays neutral on endpoints, headers, or API-specific error shapes.