Expand description
Minimal, provider-neutral handling for Codex app-server JSON-RPC notifications.
The transport emits numerous lifecycle/status events. Only turn/completed
is terminal. Text streams in item/agentMessage/delta; older/newer servers
may instead expose final text in a completed agentMessage item.
Functions§
- collect_
text - Collect assistant text without treating non-message events as output.
- is_
terminal_ notification - Returns true only for the app-server’s terminal turn notification.
- run_
turn - Run one read-only Codex app-server turn without exposing OAuth credentials.