ai-ui-core
Rust port of @assistant-ui/core: the thread message model (upstream JSON shape, unknown fields round-trip), the branching MessageRepository, the ChatModelAdapter contract, the ThreadRuntime trait with LocalThreadRuntime and ExternalStoreRuntime, ThreadList, frontend tools with approvals, composers and SmoothText.
use ;
let runtime = new;
let run = runtime.append?;
// Spawn `run` on any executor: slint::spawn_local, a Tokio LocalSet, wasm-bindgen-futures...
# Ok::
No I/O, UI, clock or randomness dependencies; builds for wasm32-unknown-unknown. Runtimes are Rc-based (single-threaded, like a UI thread).
Part of assistant-ui for Rust, a port of assistant-ui (MIT). Not affiliated with the assistant-ui project. Status and gaps: docs/STATUS.md.