Back to directory

TypeLLM

A library that adds type-safe, schema-guaranteed output to existing open language models without retraining them, letting a model keep its own free-form reasoning while its final answer stays within a declared JSON schema.

TypeLLM

TypeLLM brings type-safe generation to existing autoregressive large language models without changing their architecture or weights. A model keeps its native ability to think freely and generate open text, but its final output is constrained to a declared JSON Schema, so results such as a string, integer, number, boolean or enum choice never fall outside the allowed values.

It reduces the token cost of structured answers with single-token categorical selection and bounded numeric decoding, reuses shared prompt prefixes through key-value caching, and lets independent output fields run in parallel while dependent fields form an explicit execution graph. It also supports an optional thinking mode with a per-field token budget, image input for vision-language models, and permutation averaging to reduce order bias on multiple-choice-style questions.

It is built on SGLang, works with compatible open models a user already serves, and is also offered as an early-access hosted API for people without a GPU.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.