#117 · Primary category: LLM Application Frameworks

langfun

framework llms nlp

OO for LLMs

Project last updated:08/29/26

GitHub Stars

914

Forks

80

Contributors

14

License

Apache-2.0

Why we included this project

Langfun gives Python developers a different way to work with LLMs. Instead of stitching together prompt strings and parsing whatever comes back, you define your expected output as a PyGlove object and let the library call a model to fill in the fields. That keeps results structured and checkable. One API covers Gemini, GPT, Claude, and Llama, so you can switch providers without touching call sites. It fits workflows that need typed, dependable output, such as batch jobs, pipelines, or agent loops, and it supports prompts that mix text and images. If you already use PyGlove or just want LLM output that behaves like a normal Python type, this is worth a close look.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category