Type‑safe LLM output for Clojure. Works with any text‑only model.
// momentum
// why it's here
- Active: last commit today
- Health 89/100 with only 21 stars
// how to help
// readme
Rationale • Functionalities • Quick Start • Router • Usage • Spec DSL
Rationale
JSON Schema is the de facto way to get structured output from LLMs — but it’s incomplete. Union types have poor cross-provider support, and the entire approach requires your LLM provider to support structured output mode. That rules out local models, smaller providers, and any setup where you just have a text completion endpoint.
SVAR takes a different approach: let the LLM produce plain text, then parse and correct the output post-step. This works with any text-producing LLM — OpenAI, Anthropic, local Ollama, vLLM, whatever you have. No provider lock-in, no feature flags, no “this model doesn’t support JSON mode” surprises.