← all repositories

google/langfun

A Google library enabling object-oriented prompting of LLMs with unified API access to major providers like Gemini, GPT, and Claude.

911 stars Python Language ModelsML Frameworks
langfun
Velocity · 7d
+0.9
★ / day
Trend
steady
star history

Langfun is a PyGlove-powered framework that treats language models as functions, introducing Object-Oriented Prompting to enable LLM interaction through objects and types. It provides a unified API across multiple LLM providers and includes an evaluation framework. The library aims to simplify agent development by allowing seamless integration between natural language and programming code.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.