llmns 0.3.0

Parse, normalize, and compare llm:// references (a name system for language models)
Documentation
  • Coverage
  • 56.25%
    18 out of 32 items documented1 out of 15 items with examples
  • Size
  • Source code size: 20.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 318.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • llmns/llmns
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 4thel00z

llmns

Parse, normalize, and compare llm:// references, per llmns draft v02.

llm[s][+transport]://[credential@]host[:port]/model[@pin][?hints]
let reference: llmns::Reference =
    "llms+grpc://work@triton.internal:8001/qwen3-ft@name:step-2000".parse()?;
assert_eq!(reference.host, "triton.internal");
assert_eq!(reference.pin.as_ref().unwrap().kind, llmns::PinKind::Name);

// Equivalence is the specification's rule: the normalized
// (host, port, model, pin) tuple, with RFC 3986 percent-encoding
// normalization. Credential, hints, transport, and TLS do not contribute.
let other: llmns::Reference = "llm://TRITON.internal:8001/qwen3-ft@name:step-2000".parse()?;
assert!(reference.is_equivalent(&other));
# Ok::<(), llmns::ParseError>(())

Python bindings ship on PyPI as llmns.

License

MIT OR Apache-2.0