Skip to main content

Module claude_chat

Module claude_chat 

Source
Expand description

Direct Claude Messages ↔ OpenAI Chat conversions.

The pair operates on the declared wire DTOs. It never consults flattened rest fields and never routes through Responses, Gemini, or a common content representation.

Existing tool-call IDs are preserved so call/result links remain stable. Target-specific validation or rewriting must run in the host’s IdentityFlow before this pure pair; this module does not invent prefixes or signatures. This module converts buffered messages only, not streaming event lifecycles.

Modules§

stream
Direct Chat ↔ Claude incremental events, with independent native validation.

Structs§

ResponseSupplement

Functions§

claude_response_to_openai
claude_to_openai
openai_response_to_claude
openai_to_claude