refactor ai formats registry adapters

This commit is contained in:
fawney19
2026-04-26 23:59:53 +08:00
parent 5cd2244bc2
commit c10cd8240e
17 changed files with 344 additions and 166 deletions
+11
View File
@@ -1,5 +1,16 @@
//! Format identity and per-wire-format adapters.
//!
//! Each child module owns the boundary between one external wire shape and
//! the canonical IR. Registry conversion is intentionally constrained to:
//! source format -> canonical -> target format.
use std::{fmt, str::FromStr};
pub mod claude_messages;
pub mod gemini_generate_content;
pub mod openai_chat;
pub mod openai_responses;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum FormatFamily {
OpenAi,