guidance (Python lib)Transformers/OpenAI LLMsintermediate30 min
Guidance + template structured generation
Precise control over LLM outputs for agent tools, JSON/regex/grammar enforcement without parsing errors.
Prerequisites
- →Python 3.11+
- →pip install guidance
- →LLM (local model like Qwen via Transformers or API key for OpenAI)
Further reading