llmns
Parse, normalize, and compare llm:// references, per
llmns draft v02.
llm[s][+transport]://[credential@]host[:port]/model[@pin][?hints]
let reference: Reference =
"llms+grpc://work@triton.internal:8001/qwen3-ft@name:step-2000".parse?;
assert_eq!;
assert_eq!;
// 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: Reference = "llm://TRITON.internal:8001/qwen3-ft@name:step-2000".parse?;
assert!;
# Ok::
Python bindings ship on PyPI as llmns.
License
MIT OR Apache-2.0