llm_replay_eval 0.1.0
llm_replay_eval: ^0.1.0 copied to clipboard
Deterministic record/replay (cassettes) and eval matchers for on-device LLM inference in Flutter. Fast, offline, byte-identical AI-feature tests.
0.1.0 #
Initial release.
- Cassette engine — deterministic record/replay of on-device LLM inference. Canonical sha256 request fingerprinting (key-order independent, multimodal-safe), one-shot and streaming responses, versioned JSON cassettes that diff cleanly.
ReplaySession— runtime-agnostic wrapper for any inference call (flutter_gemma, cactus, llama_cpp_dart, remote, or custom).record/replay/automodes, with actionableCassetteMissExceptionon a replay miss.- Eval matchers —
ContainsText,MatchesPattern,EqualsText,IsValidJson,JsonHasKeys,JsonFieldEquals,MaxOutputLength,MaxTokens, plus asatisfies()bridge for use inexpect. - Cassetted
LlmJudge— LLM-as-judge whose verdict is itself recorded and replayed, making judge-based evals offline and deterministic in CI. EvalSuite— dataset runner with pass-rate aggregation and JSON reporting.