Skip to content
1 min read · 85 words

Variable: E_OPENAI_RESPONSES_REASONING_REPLAY_REJECTED ​

ts
const E_OPENAI_RESPONSES_REASONING_REPLAY_REJECTED: CreatedException<
  [string, string]
>;

Defined in: src/batteries/llm/openai_responses/exceptions.ts:157

Thrown when the upstream Responses API rejects the request because a replayed reasoning item violates the undocumented reasoning/output-item pairing constraint (openai/openai-node#1791) — detected by matching the upstream error body against known phrases (e.g. "of type 'reasoning' was provided without" / "Items are not persisted when store is set to false").

Remarks ​

Non-fatal — surfaced via ctx.nack(...). Names the offending item and suggests reasoningReplay: 'off' as a mitigation, rather than surfacing a generic HTTP error.

Printf args: [itemId, upstreamMessage].