/// Anthropic batch JSONL <-> OpenAI batch JSONL translation functions.
/// HTTP status and error shape translation between APIs.
/// Anthropic Messages API <-> Gemini generateContent API message mapping.
/// Gemini streaming: full-response diffing -> Anthropic SSE delta events.
/// Message and content block translation (system prompt, text, images, documents).
/// Anthropic to/from OpenAI Responses API request and response mapping.
/// Responses API SSE event stream translation state machine.
/// Reverse message mapping: OpenAI Chat Completions -> Anthropic Messages.
/// Reverse streaming: Anthropic SSE events -> OpenAI ChatCompletionChunk SSE.
/// Chat Completions SSE event stream translation state machine.
/// Tool definitions and tool_use/tool_call translation.
/// Token usage field mapping between Anthropic and OpenAI formats.
/// Degradation warning collection for client-visible feature-drop signals.
/// Format an OpenAI refusal string as Anthropic text content.
/// Anthropic has no refusal type, so we surface it as a bracketed text marker.
pub