llm_replay_eval 0.1.0 copy "llm_replay_eval: ^0.1.0" to clipboard
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 / auto modes, with actionable CassetteMissException on a replay miss.
  • Eval matchersContainsText, MatchesPattern, EqualsText, IsValidJson, JsonHasKeys, JsonFieldEquals, MaxOutputLength, MaxTokens, plus a satisfies() bridge for use in expect.
  • 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.
1
likes
160
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Deterministic record/replay (cassettes) and eval matchers for on-device LLM inference in Flutter. Fast, offline, byte-identical AI-feature tests.

Repository (GitHub)
View/report issues

Topics

#llm #testing #ai #on-device #mocking

License

MIT (license)

Dependencies

crypto, flutter, flutter_test

More

Packages that depend on llm_replay_eval