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

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.