Structllm – structured output support to any LLM provider

2 piotrbednarski 1 7/25/2025, 12:04:57 AM github.com ↗

Comments (1)

piotrbednarski · 20h ago
structllm is a universal and lightweight Python library that provides Structured Outputs functionality for any LLM provider (OpenAI, Anthropic, Mistral, local models, etc.), not just OpenAI. It guarantees that LLM responses conform to your provided JSON schema using Pydantic models.

If your LLM model has 7B parameters or more, it can be used with structllm.