LLMSlim v0.3.1
Highlights
- Adds provenance-aware
ContextRolehandling so untrusted RAG, tool, and assistant content cannot gain protected priority solely from imperative wording. - Adds caller-supplied rewrite providers and validated rewrite/hybrid workflows.
- Improves token counting, inline-code handling, CJK behavior, and compression selection correctness.
- Makes the benchmark runner report actual pytest outcomes.
Verification
- 432 tests passed with 0 failures
- 92.57% branch coverage
- Ruff passed
- Benchmark suite passed on 43 bundled samples across 8 dataset files
Notes
v0.3.1 is a Python release. npm, Rust, ONNX, and WASM runtimes are not shipped. Rewrite and hybrid modes require a caller-supplied provider.
See the repository release notes and docs/release/v0.3.1-release-report.md for details.