{"full_name":"dottxt-ai/outlines","owner":"dottxt-ai","name":"outlines","shard":"1","url":"https://github.com/dottxt-ai/outlines","description":"Structured Outputs","homepage":"https://dottxt-ai.github.io/outlines/","topics":["generative-ai","llms","prompt-engineering","symbolic-ai","cfg","json","regex","structured-generation"],"tag_pages":["generative-ai","json","llms","prompt-engineering","regex"],"language":"Python","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/142257755?v=4","created_at":"2023-03-17T16:01:18Z","pushed_at":"2026-09-21T17:58:05Z","metrics":{"stars":16011,"forks":917,"watchers":55,"issues":910,"prs":1004,"releases":90,"issues_open":106,"issues_closed":804,"prs_open":110,"prs_closed":173,"prs_merged":721,"discussions":155},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"},"week":{"stars":10,"forks":6,"base_day":"2026-11-04"},"month":{"stars":88,"forks":12,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[15681,15691,15693,15703,15703,15708,15713,15735,15740,15743,15745,15751,15759,15761,15770,15776,15782,15788,15801,15808,15814,15825,15829,15838,15864,15874,15877,15879,15884,15885,15890,15893,15894,15895,15897,15897,15902,15908,15908,15909,15909,15923,15924,15934,15936,15943,15949,15954,15960,15966,15969,15973,15974,15984,15984,15990,15989,15987,15998,16001,16006,16007,16008,16009,16009,16010,16011],"forks":[864,866,866,866,868,868,868,870,870,868,868,869,869,870,871,872,872,872,875,876,878,880,881,882,882,882,883,885,887,887,890,891,892,892,895,897,898,900,901,900,902,905,905,907,907,906,906,907,909,908,907,907,907,909,906,906,907,908,911,911,915,914,913,915,915,917,917],"watchers":[56,56,56,56,57,57,58,60,60,60,60,60,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,55,55,55,55,55,55,55,55,null,55,55,55,55,55,55],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,106,106,106,106,106,106],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,107,107,108,108,109,110]},"boards":{},"same_owner":[],"issues":[{"number":479,"title":"Add probability distribution to choices","comments":22,"created_at":"2023-12-24T05:46:27Z"},{"number":1351,"title":"Slow performance with the latest outlines + latest (or previous than latest vllm)","comments":17,"created_at":"2024-12-30T13:56:17Z"},{"number":1407,"title":"Token-triggered processors","comments":11,"created_at":"2025-02-07T21:21:45Z"},{"number":1962,"title":"Built-in Regex terms are not JSON-quoted inside containers (list[types.email] generates [a@b.com])","comments":9,"created_at":"2026-07-25T22:32:01Z"},{"number":1376,"title":"Make `generate.json` compatible with OpenAI's function calling format","comments":8,"created_at":"2025-01-14T09:52:15Z"},{"number":1110,"title":"llama_cpp - JSON fails to generate when using Pydantic model with models.llama_cpp","comments":8,"created_at":"2024-08-21T18:06:02Z"},{"number":1742,"title":"Widen asset format supports","comments":7,"created_at":"2025-08-29T09:33:15Z"},{"number":1233,"title":"context-free grammars example does not work with vLLM integration ","comments":7,"created_at":"2024-10-28T13:01:56Z"}],"discussions":[{"number":2101,"title":"mcp-slim: Inlining JSON Schema $ref/$defs and compacting MCP tool schemas by 50%-98% for structured tool calling","comments":0,"category":"Show and tell","created_at":"2026-11-12T05:39:25Z"},{"number":2052,"title":"Is the constrained-vs-unconstrained gap much wider on abliterated checkpoints?","comments":0,"category":"General","created_at":"2026-09-26T02:26:49Z"},{"number":2028,"title":"[Show and Tell / RFC] Finite-Horizon Reachability Masking (GCLM) for Guaranteed Goal/Syntax Completion in O(1) Time","comments":0,"category":"Show and tell","created_at":"2026-08-30T01:14:10Z"},{"number":1860,"title":"External audit step after constrained generation of DSL expressions","comments":6,"category":"Show and tell","created_at":"2026-05-04T22:20:16Z"},{"number":1858,"title":"Should we have dedicated models for providers that are OpenAI-compatible?","comments":1,"category":"General","created_at":"2026-05-04T13:58:02Z"},{"number":1837,"title":"promptdiff — lint and quality scoring for LLM prompts","comments":3,"category":"Show and tell","created_at":"2026-03-26T08:24:08Z"},{"number":1836,"title":"Functions/Classes with different names than the documentation and/or missing in the package","comments":2,"category":"Q&A","created_at":"2026-03-25T11:21:49Z"},{"number":1824,"title":"Using Outlines for constrained decoding over large Knowledge Bases","comments":3,"category":"Q&A","created_at":"2026-03-06T16:05:23Z"}],"latest_release":{"name":"Outlines v1.3.3","tag":"1.3.3","published_at":"2026-08-06T12:26:25Z","body":"## What's Changed\r\n* Support PEP 604 unions (int | str) as output types by @sohumt123 in https://github.com/dottxt-ai/outlines/pull/1932\r\n* fix: reject negative counts in exactly/at_least/at_most/between by @chuenchen309 in https://github.com/dottxt-ai/outlines/pull/1922\r\n* fix: raise clearly instead of asserting on a rejected XGrammar token by @chuenchen309 in https://github.com/dottxt-ai/outlines/pull/1923\r\n* fix(models): handle nullable object type (list form) in additionalProperties pass by @ErenAta16 in https://github.com/dottxt-ai/outlines/pull/1918\r\n* fix: reject leading-zero octets in the ipv4 type by @NishchayMahor in https://github.com/dottxt-ai/outlines/pull/1904\r\n* fix: reject leading-zero octets in ipv6 IPv4-mapped addresses by @NishchayMahor in https://github.com/dottxt-ai/outlines/pull/1936\r\n* fix(processors): NumpyTensorAdapter.apply_mask doesn't broadcast a lower-rank mask like torch's masked_fill by @chuenchen309 in https://github.com/dottxt-ai/outlines/pull/1927\r\n* fix(types): don't treat instance methods on Enum output types as choices by @ErenAta16 in https://github.com/dottxt-ai/outlines/pull/1916\r\n* Fix template whitespace collapse merging lines on trailing whitespace by @lntutor in https://github.com/dottxt-ai/outlines/pull/1935\r\n* fix(types): get_enum_from_literal/get_enum_from_choice drop values that collide under str() by @chuenchen309 in https://github.com/dottxt-ai/outlines/pull/1926\r\n* Generate the API reference from src/outlines by @ritsth in https://github.com/dottxt-ai/outlines/pull/1913\r\n* Add hex_color and slug custom types by @pepepeboom in https://github.com/dottxt-ai/outlines/pull/1934\r\n* fix(vllm): _build_client_args mutates caller's extra_body dict across calls by @feiiiiii5 in https://github.com/dottxt-ai/outlines/pull/1933\r\n* fix(sglang): _build_client_args clobbers user's extra_body instead of merging by @chuenchen309 in https://github.com/dottxt-ai/outlines/pull/1925\r\n* Render Optional enum/nested fields in the schema filter by @ritsth in https://github.com/dottxt-ai/outlines/pull/1930\r\n* fix: only set additionalProperties on object schemas by @vidigoat in https://github.com/dottxt-ai/outlines/pull/1909\r\n* docs: add Requesty model documentation by @Thibaultjaigu in https://github.com/dottxt-ai/outlines/pull/1919\r\n* fix(sglang): copy caller extra_body before merging structured outputs by @Solaris-star in https://github.com/dottxt-ai/outlines/pull/1937\r\n* fix(types): quote non-string Dict keys so generated output is valid JSON by @ErenAta16 in https://github.com/dottxt-ai/outlines/pull/1917\r\n* Update contribution guide to include AI use rules by @RobinPicard in https://github.com/dottxt-ai/outlines/pull/1953\r\n* Add the credit_card custom type by @dhanavanthesh in https://github.com/dottxt-ai/outlines/pull/1945\r\n* fix(gemini): pass the system message as a system instruction by @Kaif10 in https://github.com/dottxt-ai/outlines/pull/1967\r\n* fix(models): make TransformerTokenizer.__eq__ agree with __hash__ by @ErenAta16 in https://github.com/dottxt-ai/outlines/pull/1977\r\n* docs: fix the constr() calls in the dating profiles example by @ErenAta16 in https://github.com/dottxt-ai/outlines/pull/1972\r\n* feat(types): add iban and bic custom types by @josephkehan-prog in https://github.com/dottxt-ai/outlines/pull/1979\r\n* Add e164, latitude, and longitude custom types by @uditmahato in https://github.com/dottxt-ai/outlines/pull/1966\r\n\r\n## New Contributors\r\n* @sohumt123 made their first contribution in https://github.com/dottxt-ai/outlines/pull/1932\r\n* @chuenchen309 made their first contribution in https://github.com/dottxt-ai/outlines/pull/1922\r\n* @NishchayMahor made their first contribution in https://github.com/dottxt-ai/outlines/pull/1904\r\n* @lntutor made their first contribution in https://github.com/dottxt-ai/outlines/pull/1935\r\n* @pepepeboom made their first contribution in https://github.com/dottxt-ai/outlines/pull/1934\r\n* @feiiiiii5 made their first contribution in https://github.com/dottxt","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}