Skip to main content

Module transcript

Module transcript 

Source
Expand description

Codex transcript (event-stream) parsing.

Codex emits a JSONL event stream; item.completed events whose item type is not an agent message / reasoning / plan update become ordered ToolInvocations. Produces the same TranscriptSummary shape as the Claude adapter, but with Codex’s token accounting (excludes cached input tokens).

Functions§

parse_codex_events
Parse a Codex event stream into ordered tool invocations.
parse_codex_events_full
Parse a Codex event stream into a full TranscriptSummary.