llm-dialect 0.1.0

Pure sans-I/O LLM dialect translation: Anthropic Messages / OpenAI Chat / OpenAI Responses wire formats ↔ a canonical model, plus SSE framer state machines. No runtime, no I/O, no wall clock.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Inbound/outbound OpenAI Responses API adapter (`POST /v1/responses`).
//!
//! Responses is item-shaped natively: `input[]` is a list of typed items
//! (message | function_call | function_call_output | reasoning) rather than
//! a chat `messages` array. Most items map one-to-one onto the canonical
//! `ContentItem` shape; only message-role wrapping differs.

pub mod out;
pub mod req;
pub mod stream;