google/langfun

OO for LLMs

78
/ 100
Verified

Enables structured LLM interactions through PyGlove-based type definitions, allowing developers to define prompts with modular templates and multimodal content (images, text) while automatically parsing responses into typed Python objects. Provides a unified API across Gemini, GPT, Claude, and other models without requiring fine-tuning, with built-in support for batch workflows and evaluation frameworks that handle complex dimensional comparisons.

900 stars and 33,444 monthly downloads. Actively maintained with 5 commits in the last 30 days. Available on PyPI.

Maintenance 16 / 25
Adoption 20 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

900

Forks

71

Language

Python

License

Apache-2.0

Last pushed

Mar 17, 2026

Monthly downloads

33,444

Commits (30d)

5

Dependencies

13

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/google/langfun"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.