aimux-core 0.1.3

Core abstractions for aimux: LanguageModel trait, message types, and user-facing API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Utility functions ported from the Vercel AI SDK TypeScript `util` package.
//!
//! This module is a facade — the implementations live in dedicated modules:
//!
//! - [`json_repair`] — `fix_json` + `parse_partial_json` (from `fix-json.ts`
//!   and `parse-partial-json.ts`)
//! - [`math`] — `cosine_similarity` (from `cosine-similarity.ts`)
//!
//! The re-exports below keep `aimux_core::util::*` paths working for existing
//! consumers.

pub use crate::json_repair::{
    ParsePartialJsonResult, ParsePartialJsonState, fix_json, parse_partial_json,
};
pub use crate::math::{UtilError, cosine_similarity};