llm-dialect 0.1.2

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
//! Inbound/outbound OpenAI Chat-Completions adapter (`POST /v1/chat/completions`).
//!
//! OpenAI chat.completions is the outlier dialect: tool calls live on a
//! side-array (`choices[0].message.tool_calls`), not as content items. This
//! module folds the side-array back into `ContentItem::ToolCall` on the way
//! in, and un-folds it on the way out.

pub mod req;
pub mod stream;