talira

Compare

GuidanceInstructorOutlines
What it isA guidance language for controlling large language modelsStructured outputs from LLMs, validated with PydanticA Python library that guarantees LLM output matches a JSON schema, Pydantic model, regex or grammar
KindOpen sourceOpen sourceOpen source
Trust0.470.730.59
Stars218321413816030
Last commit2026-05-212026-11-182026-11-25
LicenceMITMITApache-2.0
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyGuidance AIJason Liu.txt
Features
  • gen() with regex and grammar constraints
  • select() from a fixed set of options
  • JSON generation from a JSON schema or Pydantic model
  • context-free grammars for output
  • interleaved control flow, loops and tool use
  • @guidance decorator for reusable components
  • token fast-forwarding where the structure is fixed
  • backends: Transformers, llama.cpp, OpenAI and others
  • All 9 features
  • extract structured data from LLM replies into Pydantic models
  • validation with automatic retries
  • streaming of partial objects and lists
  • one interface for 15+ providers, including local models via Ollama
  • async support and hooks
  • CLI that opens and searches the docs
  • Constrains generation to a JSON schema or Pydantic model
  • Regular expression constrained output
  • Context-free grammar constrained output
  • Multiple choice outputs
  • Infers structure from function signatures
  • Works with transformers, llama.cpp, vLLM, Ollama, OpenAI and Gemini
  • Prompt templates