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
10
11
12
13
14
15
16
17
//! Wire-format dialect adapters.
//!
//! `*/req.rs` parses the client wire format into the [`crate::items`]
//! canonical model; `*/out.rs` renders canonical responses back to that
//! dialect and `*/stream.rs` holds the per-chunk SSE framer state machines.
//! All of it is pure data transformation; the SSE pump in [`sse`] (feature
//! `axum`) is the only runtime-coupled piece.

pub mod anthropic;
pub mod deflate;
pub mod openai_chat;
pub mod openai_responses;
pub mod sse;

#[cfg(all(test, feature = "axum"))]
#[path = "stream_matrix_tests.rs"]
mod stream_matrix_tests;