llmx 0.1.0

Utilities for working with LLM outputs (e.g. fuzzy JSON extraction/parsing).
Documentation
  • Coverage
  • 77.78%
    21 out of 27 items documented4 out of 20 items with examples
  • Size
  • Source code size: 44.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 30s Average build duration of successful builds.
  • all releases: 31s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • fankaiLiu/llmx
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fankaiLiu

llmx

Utilities for working with LLM outputs.

Currently this crate focuses on turning "fuzzy" JSON-like text (common in LLM responses) into real serde_json::Value.

Usage

use llmx::json::parse_fuzzy_json;

let v = parse_fuzzy_json("```json\n{'a': True, b: None}\n```").unwrap();
assert_eq!(v["a"], true);
assert!(v["b"].is_null());